Struct shipyard::ViewMut[][src]

pub struct ViewMut<'a, T> { /* fields omitted */ }
Expand description

Exclusive view over a component storage.

Methods from Deref<Target = SparseSet<T>>

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 true if the window contains entity.

Returns the length of the window.

Returns true if the window’s length is 0.

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.

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.

Deletes all components in this storage.

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.

Returns a slice of all the components in this storage.

Returns a window over range.

Returns a window over range.
Unwraps errors.

Returns a mutable window over range.

Returns a mutable window over range.
Unwraps errors.

Trait Implementations

Performs the conversion.

Performs the conversion.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Retrieve components of entity. Read more

Retrieve components of entity.
Unwraps errors. Read more

Retrieve components of entity. Read more

Retrieve components of entity.
Unwraps errors. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.