pub struct Entity<'a> { /* private fields */ }
Expand description
A useful struct for building a entity
Implementations
sourceimpl<'a> Entity<'a>
impl<'a> Entity<'a>
sourcepub fn component_read<T: Component>(&self) -> Option<ComponentRead<'_, T>>
pub fn component_read<T: Component>(&self) -> Option<ComponentRead<'_, T>>
Read component of this entity
sourcepub fn component_write<T: Component>(&self) -> Option<ComponentWrite<'_, T>>
pub fn component_write<T: Component>(&self) -> Option<ComponentWrite<'_, T>>
Write component of this entity
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Entity<'a>
impl<'a> !Send for Entity<'a>
impl<'a> Sync for Entity<'a>
impl<'a> Unpin for Entity<'a>
impl<'a> !UnwindSafe for Entity<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more