pub struct RealtimeComponentTable<T: RealtimeComponent>(/* private fields */);Implementations§
Source§impl<T: RealtimeComponent> RealtimeComponentTable<T>
impl<T: RealtimeComponent> RealtimeComponentTable<T>
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn insert_with_schedule( &mut self, entity: Entity, data: ScheduledRealtimeComponent<T>, ) -> Option<ScheduledRealtimeComponent<T>>
pub fn insert(&mut self, entity: Entity, data: T) -> Option<T>
pub fn contains(&self, entity: Entity) -> bool
pub fn remove_with_schedule( &mut self, entity: Entity, ) -> Option<ScheduledRealtimeComponent<T>>
pub fn remove(&mut self, entity: Entity) -> Option<T>
pub fn get_with_schedule( &self, entity: Entity, ) -> Option<&ScheduledRealtimeComponent<T>>
pub fn get_with_schedule_mut( &mut self, entity: Entity, ) -> Option<&mut ScheduledRealtimeComponent<T>>
pub fn get(&self, entity: Entity) -> Option<&T>
pub fn get_mut(&mut self, entity: Entity) -> Option<&mut T>
pub fn iter_with_schedule( &self, ) -> ComponentTableIter<'_, ScheduledRealtimeComponent<T>> ⓘ
pub fn iter_with_schedule_mut( &mut self, ) -> ComponentTableIterMut<'_, ScheduledRealtimeComponent<T>> ⓘ
pub fn iter(&self) -> RealtimeComponentTableIter<'_, T> ⓘ
pub fn iter_mut(&mut self) -> RealtimeComponentTableIterMut<'_, T> ⓘ
pub fn entities(&self) -> impl '_ + Iterator<Item = Entity>
Trait Implementations§
Source§impl<T: Clone + RealtimeComponent> Clone for RealtimeComponentTable<T>
impl<T: Clone + RealtimeComponent> Clone for RealtimeComponentTable<T>
Source§fn clone(&self) -> RealtimeComponentTable<T>
fn clone(&self) -> RealtimeComponentTable<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + RealtimeComponent> Debug for RealtimeComponentTable<T>
impl<T: Debug + RealtimeComponent> Debug for RealtimeComponentTable<T>
Source§impl<T: RealtimeComponent> Default for RealtimeComponentTable<T>
impl<T: RealtimeComponent> Default for RealtimeComponentTable<T>
Auto Trait Implementations§
impl<T> Freeze for RealtimeComponentTable<T>
impl<T> RefUnwindSafe for RealtimeComponentTable<T>where
T: RefUnwindSafe,
impl<T> Send for RealtimeComponentTable<T>where
T: Send,
impl<T> Sync for RealtimeComponentTable<T>where
T: Sync,
impl<T> Unpin for RealtimeComponentTable<T>where
T: Unpin,
impl<T> UnwindSafe for RealtimeComponentTable<T>where
T: UnwindSafe,
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