[−][src]Struct minimum::entity::EntityRef
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]
&self,
storage: &'c T::Storage
) -> Option<&'c T>
pub fn get_component_mut<'c, T: Component>(
&self,
storage: &'c mut T::Storage
) -> Option<&'c mut T>
[src]
&self,
storage: &'c mut T::Storage
) -> Option<&'c mut T>
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]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,