pub struct ArchetypeEntityRowAccess<'a> { /* private fields */ }Implementations§
Source§impl<'a> ArchetypeEntityRowAccess<'a>
impl<'a> ArchetypeEntityRowAccess<'a>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn types(&self) -> impl Iterator<Item = TypeHash> + '_
pub fn columns(&self) -> impl Iterator<Item = &ArchetypeColumnInfo>
pub fn read<T: Component>(&self) -> Option<&T>
pub fn write<T: Component>(&mut self) -> Option<&mut T>
Sourcepub unsafe fn initialize<T: Component>(
&self,
value: T,
) -> Result<(), ArchetypeError>
pub unsafe fn initialize<T: Component>( &self, value: T, ) -> Result<(), ArchetypeError>
§Safety
Sourcepub unsafe fn initialize_raw(&self, type_: &Type) -> Result<(), ArchetypeError>
pub unsafe fn initialize_raw(&self, type_: &Type) -> Result<(), ArchetypeError>
§Safety
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ArchetypeEntityRowAccess<'a>
impl<'a> RefUnwindSafe for ArchetypeEntityRowAccess<'a>
impl<'a> Send for ArchetypeEntityRowAccess<'a>
impl<'a> Sync for ArchetypeEntityRowAccess<'a>
impl<'a> Unpin for ArchetypeEntityRowAccess<'a>
impl<'a> UnwindSafe for ArchetypeEntityRowAccess<'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