mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
bevy_reflect: Add FromReflect
to the prelude (#5720)
# Objective `FromReflect` is a commonly used component to the Reflect API. It's required as a bound for reflecting things like `Vec<T>` and `HashMap<K, V>` and is generally useful (if not necessary) to derive on most structs or enums. Currently, however, it is not exported in `bevy_reflect`'s prelude. This means a module that uses `bevy_reflect` might have the following two lines: ```rust use bevy_reflect::prelude::*; use bevy_reflect::FromReflect; ``` Additionally, users of the full engine might need to put: ```rust use bevy::prelude::*; use bevy::reflect::FromReflect; ``` ## Solution Add `FromReflect` to the prelude of `bevy_reflect`. --- ## Changelog - Added `FromReflect` to the prelude of `bevy_reflect`
This commit is contained in:
parent
f0c512731b
commit
00508d110a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ pub mod prelude {
|
|||
pub use crate::std_traits::*;
|
||||
#[doc(hidden)]
|
||||
pub use crate::{
|
||||
reflect_trait, GetField, GetTupleStructField, Reflect, ReflectDeserialize,
|
||||
reflect_trait, FromReflect, GetField, GetTupleStructField, Reflect, ReflectDeserialize,
|
||||
ReflectSerialize, Struct, TupleStruct,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue