pub trait FromWorld {
    fn from_world(world: &mut World) -> Self;
}
Expand description

Creates an instance of the type this trait is implemented for using data from the supplied World.

This can be helpful for complex initialization or context-aware defaults.

Required Methods

Creates Self using data from the given World

Implementors