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
					
				| @ -35,7 +35,7 @@ pub mod prelude { | |||||||
|     pub use crate::std_traits::*; |     pub use crate::std_traits::*; | ||||||
|     #[doc(hidden)] |     #[doc(hidden)] | ||||||
|     pub use crate::{ |     pub use crate::{ | ||||||
|         reflect_trait, GetField, GetTupleStructField, Reflect, ReflectDeserialize, |         reflect_trait, FromReflect, GetField, GetTupleStructField, Reflect, ReflectDeserialize, | ||||||
|         ReflectSerialize, Struct, TupleStruct, |         ReflectSerialize, Struct, TupleStruct, | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Gino Valente
						Gino Valente