Struct ABC_ECS::SingleMutEntity
source · pub struct SingleMutEntity<'a> { /* private fields */ }Implementations§
source§impl<'a> SingleMutEntity<'a>
impl<'a> SingleMutEntity<'a>
pub fn get_component<T: Component + Send + Sync>(&self) -> &T
pub fn try_get_component<T: Component + Send + Sync>(&self) -> Option<&Box<T>>
pub fn get_component_mut<T: Component + Send + Sync>(&mut self) -> &mut T
pub fn try_get_component_mut<T: Component + Send + Sync>( &mut self ) -> Option<&mut Box<T>>
pub fn get_components<'b, T: ComponentsRef<'b> + 'static>(&'b self) -> T::Result
pub fn try_get_components<'b, T: TryComponentsRef<'b> + 'static>( &'b self ) -> T::Result
pub fn get_components_mut<'b, T: ComponentsMut<'b> + 'static>( &'b mut self ) -> T::Result
pub fn try_get_components_mut<'b, T: TryComponentsMut<'b> + 'static>( &'b mut self ) -> T::Result
pub fn remove_component<T: Component + Send + Sync>(&mut self)
pub fn add_component<T: Component + Send + Sync>(&mut self, component: T)
pub fn has_component<T: Component + Send + Sync>(&self) -> bool
pub fn remove_entity(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for SingleMutEntity<'a>
impl<'a> !RefUnwindSafe for SingleMutEntity<'a>
impl<'a> Send for SingleMutEntity<'a>
impl<'a> Sync for SingleMutEntity<'a>
impl<'a> Unpin for SingleMutEntity<'a>
impl<'a> !UnwindSafe for SingleMutEntity<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more