pub struct Cons<E, M = List<E>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<E: Clone, M: Clone> IPeekFirst<E> for Cons<E, M>
impl<E: Clone, M: Clone> IPeekFirst<E> for Cons<E, M>
fn peek_first(&self) -> Option<E>
impl<E: Clone, M: Clone> IPersistent for Cons<E, M>
Source§impl<E: Clone, M: Clone + IntoIterator<Item = E>> IntoIterator for Cons<E, M>
impl<E: Clone, M: Clone + IntoIterator<Item = E>> IntoIterator for Cons<E, M>
Auto Trait Implementations§
impl<E, M = Standard<E>> !RefUnwindSafe for Cons<E, M>
impl<E, M = Standard<E>> !Send for Cons<E, M>
impl<E, M = Standard<E>> !Sync for Cons<E, M>
impl<E, M = Standard<E>> !UnwindSafe for Cons<E, M>
impl<E, M> Freeze for Cons<E, M>
impl<E, M> Unpin for Cons<E, M>
impl<E, M> UnsafeUnpin for Cons<E, M>where
E: UnsafeUnpin,
M: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedSum<usize> for Twhere
T: IntoIterator<Item = usize>,
impl<T> CheckedSum<usize> for Twhere
T: IntoIterator<Item = usize>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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