Struct shipyard::SparseSet [−][src]
pub struct SparseSet<T> { /* fields omitted */ }
Expand description
Component storage.
Implementations
Removes entity
’s component from this storage.
Removes entity
’s component from this storage.
Unwraps errors.
Deletes entity
’s component from this storage.
Deletes entity
’s component from this storage.
Unwraps errors.
Returns the inserted section of an update packed window.
Returns the inserted section of an update packed window.
Unwraps errors.
Returns the inserted section of an update packed window mutably.
Returns the inserted section of an update packed window mutably.
Unwraps errors.
Returns the modified section of an update packed window.
Returns the modified section of an update packed window.
Unwraps errors.
Returns the modified section of an update packed window mutably.
Returns the modified section of an update packed window mutably.
Unwraps errors.
Returns the inserted and modified section of an update packed window.
Returns the inserted and modified section of an update packed window.
Unwraps errors.
pub fn try_inserted_or_modified_mut(
&mut self
) -> Result<WindowMut<'_, T>, InsertedOrModified>
pub fn try_inserted_or_modified_mut(
&mut self
) -> Result<WindowMut<'_, T>, InsertedOrModified>
Returns the inserted and modified section of an update packed window mutably.
Returns the inserted and modified section of an update packed window mutably.
Unwraps errors.
Returns the deleted components of an update packed window.
Returns the deleted components of an update packed window.
Unwraps errors.
Takes ownership of the deleted components of an update packed window.
Takes ownership of the deleted components of an update packed window.
Unwraps errors.
Moves all component in the inserted section of an update packed window to the neutral section.
Moves all component in the inserted section of an update packed window to the neutral section.
Unwraps errors.
Moves all component in the modified section of an update packed window to the neutral section.
Moves all component in the modified section of an update packed window to the neutral section.
Unwraps errors.
Moves all component in the inserted and modified section of an update packed window to the neutral section.
Moves all component in the inserted and modified section of an update packed window to the neutral section.
Unwraps errors.
Update packs this storage making it track inserted, modified and deleted components.
Update packs this storage making it track inserted, modified and deleted components.
Unwraps errors.
Reserves memory for at least additional
components. Adding components can still allocate though.
Returns the EntityId
at a given index
.
Returns the EntityId
at a given index
.
Unwraps errors.
Returns the index of entity
’s component in the dense
and data
vectors.
This index is only valid for this storage and until a modification happens.
Returns the index of entity
’s component in the dense
and data
vectors.
This index is only valid for this storage and until a modification happens.
Safety
entity
has to own a component in this storage.
In case it used to but no longer does, the result will be wrong but won’t trigger any UB.
pub fn try_as_window<R: RangeBounds<usize>>(
&self,
range: R
) -> Result<Window<'_, T>, NotInbound>
pub fn try_as_window<R: RangeBounds<usize>>(
&self,
range: R
) -> Result<Window<'_, T>, NotInbound>
Returns a window over range
.
Returns a window over range
.
Unwraps errors.
pub fn try_as_window_mut<R: RangeBounds<usize>>(
&mut self,
range: R
) -> Result<WindowMut<'_, T>, NotInbound>
pub fn try_as_window_mut<R: RangeBounds<usize>>(
&mut self,
range: R
) -> Result<WindowMut<'_, T>, NotInbound>
Returns a mutable window over range
.
Returns a mutable window over range
.
Unwraps errors.
Trait Implementations
type IntoSortable = Sort1<'tmp, T>
Doesn’t sort the view(s) until an algorithm is chosen, unstable
for example. Read more