Skip to content

Commit

Permalink
Add crate level functions feature docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpulvis committed Sep 7, 2024
1 parent 6183b56 commit 32cc9dd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crates/bevy_reflect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,18 @@
//! These dependencies are used by the [Bevy] game engine and must define their reflection implementations
//! within this crate due to Rust's [orphan rule].
//!
//! ## `functions`
//!
//! | Default | Dependencies |
//! | :-----: | :-------------------------------: |
//! | ❌ | [`bevy_reflect_derive/functions`] |
//!
//! This feature allows creating [`DynamicFunction`], [`DynamicClosure`], and [`DynamicClosureMut`]
//! types from their underlying Rust function equivalents. Dynamic functions and closures can then
//! be inspected and called with a valid [`ArgList`].
//!
//! For more information, read the [`func`] module docs.
//!
//! ## `documentation`
//!
//! | Default | Dependencies |
Expand Down Expand Up @@ -523,6 +535,11 @@
//! [`smallvec`]: https://docs.rs/smallvec/latest/smallvec/
//! [orphan rule]: https://doc.rust-lang.org/book/ch10-02-traits.html#implementing-a-trait-on-a-type:~:text=But%20we%20can%E2%80%99t,implementation%20to%20use.
//! [`bevy_reflect_derive/documentation`]: bevy_reflect_derive
//! [`bevy_reflect_derive/functions`]: bevy_reflect_derive
//! [`DynamicFunction`]: crate::func::DynamicFunction
//! [`DynamicClosure`]: crate::func::DynamicClosure
//! [`DynamicClosureMut`]: crate::func::DynamicClosureMut
//! [`ArgList`]: crate::func::ArgList
//! [derive `Reflect`]: derive@crate::Reflect

mod array;
Expand Down

0 comments on commit 32cc9dd

Please sign in to comment.