pub struct InsertedOrModified<Storage>(pub Storage);Expand description
Wrapper type allowing iterating over inserted and modified flagged components.
Tuple Fields§
§0: StorageTrait Implementations§
Source§impl<Storage: Clone> Clone for InsertedOrModified<Storage>
impl<Storage: Clone> Clone for InsertedOrModified<Storage>
Source§fn clone(&self) -> InsertedOrModified<Storage>
fn clone(&self) -> InsertedOrModified<Storage>
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<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp View<'v, T, Track>>
impl<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp View<'v, T, Track>>
type Shiperator = InsertedOrModified<FullRawWindow<'tmp, T>>
Source§fn into_shiperator(
self,
storage_ids: &mut ShipHashSet<StorageId>,
) -> (Self::Shiperator, usize, RawEntityIdAccess)
fn into_shiperator( self, storage_ids: &mut ShipHashSet<StorageId>, ) -> (Self::Shiperator, usize, RawEntityIdAccess)
Returns the Shiperator, its maximum length and
RawEntityIdAccess.Source§fn can_captain() -> bool
fn can_captain() -> bool
Returns
true if the Shiperator can be a captain.Source§fn can_sailor() -> bool
fn can_sailor() -> bool
Returns
true if the Shiperator can be a sailor.Source§impl<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp ViewMut<'v, T, Track>>
impl<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp ViewMut<'v, T, Track>>
type Shiperator = InsertedOrModified<FullRawWindow<'tmp, T>>
Source§fn into_shiperator(
self,
storage_ids: &mut ShipHashSet<StorageId>,
) -> (Self::Shiperator, usize, RawEntityIdAccess)
fn into_shiperator( self, storage_ids: &mut ShipHashSet<StorageId>, ) -> (Self::Shiperator, usize, RawEntityIdAccess)
Returns the Shiperator, its maximum length and
RawEntityIdAccess.Source§fn can_captain() -> bool
fn can_captain() -> bool
Returns
true if the Shiperator can be a captain.Source§fn can_sailor() -> bool
fn can_sailor() -> bool
Returns
true if the Shiperator can be a sailor.Source§impl<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp mut ViewMut<'v, T, Track>>
impl<'tmp, 'v: 'tmp, T: Component, Track: Tracking> IntoShiperator for InsertedOrModified<&'tmp mut ViewMut<'v, T, Track>>
type Shiperator = InsertedOrModified<FullRawWindowMut<'tmp, T, Track>>
Source§fn into_shiperator(
self,
storage_ids: &mut ShipHashSet<StorageId>,
) -> (Self::Shiperator, usize, RawEntityIdAccess)
fn into_shiperator( self, storage_ids: &mut ShipHashSet<StorageId>, ) -> (Self::Shiperator, usize, RawEntityIdAccess)
Returns the Shiperator, its maximum length and
RawEntityIdAccess.Source§fn can_captain() -> bool
fn can_captain() -> bool
Returns
true if the Shiperator can be a captain.Source§fn can_sailor() -> bool
fn can_sailor() -> bool
Returns
true if the Shiperator can be a sailor.Source§impl<Storage> Not for InsertedOrModified<Storage>
impl<Storage> Not for InsertedOrModified<Storage>
Source§impl<'tmp, T: ShiperatorCaptain> ShiperatorCaptain for InsertedOrModified<T>
impl<'tmp, T: ShiperatorCaptain> ShiperatorCaptain for InsertedOrModified<T>
Source§unsafe fn get_captain_data(&self, _index: usize) -> Self::Out
unsafe fn get_captain_data(&self, _index: usize) -> Self::Out
Returns the component at
index. Read moreSource§fn next_slice(&mut self)
fn next_slice(&mut self)
Shiperators might iterate multiple splices of
This function is called on the switch to the next slice.
EntityIds.This function is called on the switch to the next slice.
Source§fn sail_time(&self) -> usize
fn sail_time(&self) -> usize
Approximation of how much time iterating this Shiperator will take.
This helps pick the fastest Shiperator when iterating multiple storages. Read more
This helps pick the fastest Shiperator when iterating multiple storages. Read more
Source§fn is_exact_sized(&self) -> bool
fn is_exact_sized(&self) -> bool
true when this Shiperator cannot return None.Source§impl<T: ShiperatorOutput> ShiperatorOutput for InsertedOrModified<T>
impl<T: ShiperatorOutput> ShiperatorOutput for InsertedOrModified<T>
Source§type Out = <T as ShiperatorOutput>::Out
type Out = <T as ShiperatorOutput>::Out
The type returned by the Shiperator.
Source§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindow<'tmp, T>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindow<'tmp, T>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, All>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, All>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Deletion>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Deletion>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, DeletionAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, DeletionAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Insertion>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Insertion>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndDeletion>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndDeletion>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndDeletionAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndDeletionAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModification>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModification>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModificationAndDeletion>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModificationAndDeletion>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModificationAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndModificationAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, InsertionAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Modification>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Modification>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndDeletion>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndDeletion>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndDeletionAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndDeletionAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndRemoval>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, ModificationAndRemoval>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Removal>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Removal>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreSource§impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Untracked>>
impl<'tmp, T: Component> ShiperatorSailor for InsertedOrModified<FullRawWindowMut<'tmp, T, Untracked>>
Source§type Index = usize
type Index = usize
Type this Shiperator is indexed with.
This is often
This is often
usize or a tuple of usize for multiple storages.Source§unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
unsafe fn get_sailor_data(&self, index: Self::Index) -> Self::Out
Returns the component at
index. Read moreAuto Trait Implementations§
impl<Storage> Freeze for InsertedOrModified<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for InsertedOrModified<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for InsertedOrModified<Storage>where
Storage: Send,
impl<Storage> Sync for InsertedOrModified<Storage>where
Storage: Sync,
impl<Storage> Unpin for InsertedOrModified<Storage>where
Storage: Unpin,
impl<Storage> UnsafeUnpin for InsertedOrModified<Storage>where
Storage: UnsafeUnpin,
impl<Storage> UnwindSafe for InsertedOrModified<Storage>where
Storage: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more