Struct shipyard::Window [−][src]
pub struct Window<'a, T> { /* fields omitted */ }
Expand description
Shared slice of a storage.
Implementations
Returns the inserted section of an update packed window.
Returns the inserted section of an update packed window.
Unwraps errors.
Returns the modified section of an update packed window.
Returns the modified section of an update packed window.
Unwraps errors.
Returns the inserted and modified section of an update packed window.
Returns the modified section of an update packed window.
Unwraps errors.
Returns the deleted components of an update packed window.
Returns the deleted components of an update packed window.
Unwraps errors.
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 window.
Returns the index of entity
’s component in the dense
and data
vectors.
This index is only valid for this window.
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.
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Window<'a, T> where
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for Window<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more