Struct shipyard::UniqueStorage
source · [−]pub struct UniqueStorage<T: Unique> { /* private fields */ }
Expand description
Unique storage.
Trait Implementations
sourceimpl<T: Unique> Storage for UniqueStorage<T>
impl<T: Unique> Storage for UniqueStorage<T>
sourcefn memory_usage(&self) -> Option<StorageMemoryUsage>
fn memory_usage(&self) -> Option<StorageMemoryUsage>
Returns how much memory this storage uses.
sourcefn sparse_array(&self) -> Option<&SparseArray<EntityId, 32>>
fn sparse_array(&self) -> Option<&SparseArray<EntityId, 32>>
Returns a SparseSet
’s internal SparseArray
. Read more
sourcefn clear_all_removed_or_deleted(&mut self)
fn clear_all_removed_or_deleted(&mut self)
Clear all deletion and removal tracking data.
sourcefn clear_all_removed_or_deleted_older_than_timestamp(
&mut self,
_timestamp: TrackingTimestamp
)
fn clear_all_removed_or_deleted_older_than_timestamp(
&mut self,
_timestamp: TrackingTimestamp
)
Clear all deletion and removal tracking data older than some timestamp.
Auto Trait Implementations
impl<T> RefUnwindSafe for UniqueStorage<T> where
T: RefUnwindSafe,
impl<T> Send for UniqueStorage<T> where
T: Send,
impl<T> Sync for UniqueStorage<T> where
T: Sync,
impl<T> Unpin for UniqueStorage<T> where
T: Unpin,
impl<T> UnwindSafe for UniqueStorage<T> where
T: UnwindSafe,
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more