pub trait FromWorld {
// Required method
fn from_world(world: &mut World) -> Self;
}
Expand description
Required Methods§
Sourcefn from_world(world: &mut World) -> Self
fn from_world(world: &mut World) -> Self
Creates Self
using data from the given World
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.