pub struct Entries<'a, 'b: 'a, T: 'a, D: 'a>(/* private fields */);
Expand description
LendJoin
-able structure that yields all indices,
returning StorageEntry
for all elements.
This can be constructed via Storage::entries
.
Trait Implementations§
Source§impl<'a, 'b: 'a, T, D> LendJoin for Entries<'a, 'b, T, D>
impl<'a, 'b: 'a, T, D> LendJoin for Entries<'a, 'b, T, D>
Source§unsafe fn open(self) -> (Self::Mask, Self::Value)
unsafe fn open(self) -> (Self::Mask, Self::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get<'next>(
value: &'next mut Self::Value,
id: Index,
) -> <Self as LendJoinඞType<'next>>::T
unsafe fn get<'next>( value: &'next mut Self::Value, id: Index, ) -> <Self as LendJoinඞType<'next>>::T
Get a joined component value by a given index. Read more
Source§fn is_unconstrained() -> bool
fn is_unconstrained() -> bool
If this
LendJoin
typically returns all indices in the mask, then
iterating over only it or combined with other joins that are also
dangerous will cause the JoinLendIter
to go through all indices which
is usually not what is wanted and will kill performance.Source§fn lend_join(self) -> JoinLendIter<Self>where
Self: Sized,
fn lend_join(self) -> JoinLendIter<Self>where
Self: Sized,
Create a joined lending iterator over the contents.
impl<'a, 'b: 'a, T, D> RepeatableLendGet for Entries<'a, 'b, T, D>
Auto Trait Implementations§
impl<'a, 'b, T, D> Freeze for Entries<'a, 'b, T, D>
impl<'a, 'b, T, D> !RefUnwindSafe for Entries<'a, 'b, T, D>
impl<'a, 'b, T, D> Send for Entries<'a, 'b, T, D>
impl<'a, 'b, T, D> Sync for Entries<'a, 'b, T, D>
impl<'a, 'b, T, D> Unpin for Entries<'a, 'b, T, D>
impl<'a, 'b, T, D> !UnwindSafe for Entries<'a, 'b, T, D>
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> 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