pub trait ManagedTypeRegistration: GetTypeRegistration {
// Required method
fn get_all_type_registrations() -> Vec<TypeRegistration>;
}
Expand description
trait that denotes that enum/struct/etc.. can fetch all of the type registrations needed of itself.
this is placeholder to fill the gap of recursive type registration, See: https://github.com/bevyengine/bevy/issues/4154
Required Methods§
sourcefn get_all_type_registrations() -> Vec<TypeRegistration>
fn get_all_type_registrations() -> Vec<TypeRegistration>
takes all fields of this enum/struc/etc.., and returns a vec with their type registrations.
Object Safety§
This trait is not object safe.