Struct bevy_ecs::world::WorldCell[][src]

pub struct WorldCell<'w> { /* fields omitted */ }

Exposes safe mutable access to multiple resources at a time in a World. Attempting to access World in a way that violates Rust’s mutability rules will panic thanks to runtime checks.

Implementations

impl<'w> WorldCell<'w>[src]

pub fn get_resource<T: Component>(&self) -> Option<WorldBorrow<'_, T>>[src]

pub fn get_resource_mut<T: Component>(&self) -> Option<WorldBorrowMut<'_, T>>[src]

pub fn get_non_send<T: 'static>(&self) -> Option<WorldBorrow<'_, T>>[src]

pub fn get_non_send_mut<T: 'static>(&self) -> Option<WorldBorrowMut<'_, T>>[src]

Trait Implementations

impl<'w> Drop for WorldCell<'w>[src]

Auto Trait Implementations

impl<'w> !RefUnwindSafe for WorldCell<'w>

impl<'w> !Send for WorldCell<'w>

impl<'w> !Sync for WorldCell<'w>

impl<'w> Unpin for WorldCell<'w>

impl<'w> !UnwindSafe for WorldCell<'w>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,