pub struct SystemAccess<'a> { /* private fields */ }Expand description
Represents all available components to a system.
Implementations§
Source§impl<'a> SystemAccess<'a>
impl<'a> SystemAccess<'a>
Sourcepub fn type_id_to_archetype_id(&self, type_id: &TypeId) -> Option<ArchetypeId>
pub fn type_id_to_archetype_id(&self, type_id: &TypeId) -> Option<ArchetypeId>
Returns ArchetypeId corresponding to the specified TypeId.
Sourcepub fn component<C: Component>(&self) -> GlobalComponentAccess<'_, C>
pub fn component<C: Component>(&self) -> GlobalComponentAccess<'_, C>
Borrows the component. Panics if the component is mutably borrowed or not available to this system.
Sourcepub fn component_mut<'b, C: Component>(
&'b self,
) -> GlobalComponentAccessMut<'a, 'b, C>
pub fn component_mut<'b, C: Component>( &'b self, ) -> GlobalComponentAccessMut<'a, 'b, C>
Mutably borrows the component. Panics if the component is already borrowed or not available to this system.
Auto Trait Implementations§
impl<'a> !Freeze for SystemAccess<'a>
impl<'a> !RefUnwindSafe for SystemAccess<'a>
impl<'a> Send for SystemAccess<'a>
impl<'a> !Sync for SystemAccess<'a>
impl<'a> Unpin for SystemAccess<'a>
impl<'a> !UnwindSafe for SystemAccess<'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