Struct spirt::EntityListIter
source · pub struct EntityListIter<E: Entity> {
pub first: Option<E>,
pub last: Option<E>,
}
Expand description
EntityList<E>
iterator, but with a different API than Iterator
.
This can also be considered a (non-random-access) “subslice” of the list.
Fields§
§first: Option<E>
§last: Option<E>
Implementations§
source§impl<E: Entity<Def = EntityListNode<E, D>>, D> EntityListIter<E>
impl<E: Entity<Def = EntityListNode<E, D>>, D> EntityListIter<E>
pub fn split_first(self, defs: &EntityDefs<E>) -> Option<(E, Self)>
pub fn split_last(self, defs: &EntityDefs<E>) -> Option<(E, Self)>
Trait Implementations§
source§impl<E: Clone + Entity> Clone for EntityListIter<E>
impl<E: Clone + Entity> Clone for EntityListIter<E>
source§fn clone(&self) -> EntityListIter<E>
fn clone(&self) -> EntityListIter<E>
Returns a copy 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 moreimpl<E: Copy + Entity> Copy for EntityListIter<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for EntityListIter<E>where E: RefUnwindSafe,
impl<E> Send for EntityListIter<E>where E: Send,
impl<E> Sync for EntityListIter<E>where E: Sync,
impl<E> Unpin for EntityListIter<E>where E: Unpin,
impl<E> UnwindSafe for EntityListIter<E>where E: 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