[][src]Struct minimum::entity::EntityRef

pub struct EntityRef<'e> { /* fields omitted */ }

Methods

impl<'e> EntityRef<'e>[src]

pub fn new(entity: &'e Entity, handle: EntityHandle) -> Self[src]

pub fn add_component<T: Component>(&self, storage: &mut T::Storage, data: T)[src]

pub fn remove_component<T: Component>(&self, storage: &mut T::Storage)[src]

pub fn get_component<'c, T: Component>(
    &self,
    storage: &'c T::Storage
) -> Option<&'c T>
[src]

pub fn get_component_mut<'c, T: Component>(
    &self,
    storage: &'c mut T::Storage
) -> Option<&'c mut T>
[src]

Auto Trait Implementations

impl<'e> Unpin for EntityRef<'e>

impl<'e> Sync for EntityRef<'e>

impl<'e> Send for EntityRef<'e>

impl<'e> RefUnwindSafe for EntityRef<'e>

impl<'e> UnwindSafe for EntityRef<'e>

Blanket Implementations

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

impl<T> From<T> 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T