Trait bevy::ecs::world::FromWorld

source ·
pub trait FromWorld {
    // Required method
    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§

source

fn from_world(world: &mut World) -> Self

Creates Self using data from the given World.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FromWorld for BlitPipeline

source§

impl FromWorld for CASNode

source§

impl FromWorld for CASPipeline

source§

impl FromWorld for MainPass2dNode

source§

impl FromWorld for FxaaPipeline

source§

impl FromWorld for MsaaWritebackNode

source§

impl FromWorld for TonemappingPipeline

source§

impl FromWorld for Children

source§

impl FromWorld for Parent

source§

impl FromWorld for DeferredLightingLayout

source§

impl FromWorld for GlobalLightMeta

source§

impl FromWorld for MeshPipeline

source§

impl FromWorld for ShadowSamplers

source§

impl FromWorld for FallbackImage

source§

impl FromWorld for FallbackImageCubemap

source§

impl FromWorld for FallbackImageZero

source§

impl FromWorld for ImageLoader

source§

impl FromWorld for ScreenshotToScreenPipeline

source§

impl FromWorld for SceneLoader

source§

impl FromWorld for Mesh2dPipeline

source§

impl FromWorld for SpritePipeline

source§

impl FromWorld for UiPipeline

source§

impl FromWorld for WorldId

source§

impl<D, F> FromWorld for QueryState<D, F>
where D: QueryData, F: QueryFilter,

source§

impl<M> FromWorld for MaterialPipeline<M>
where M: Material,

source§

impl<M> FromWorld for PrepassPipeline<M>
where M: Material,

source§

impl<M> FromWorld for Material2dPipeline<M>
where M: Material2d,

source§

impl<M> FromWorld for UiMaterialPipeline<M>
where M: UiMaterial,

source§

impl<N> FromWorld for ViewNodeRunner<N>
where N: ViewNode + FromWorld,

source§

impl<Param> FromWorld for SystemState<Param>
where Param: SystemParam,

source§

impl<S> FromWorld for State<S>
where S: States + FromWorld,

source§

impl<T> FromWorld for T
where T: Default,