pub struct Standard<E> { /* private fields */ }Implementations§
Source§impl<E: Clone> Standard<E>
impl<E: Clone> Standard<E>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn peek_first(&self) -> Option<&E>
pub fn peek_last(&self) -> Option<&E>
pub fn get(&self, index: usize) -> Option<&E>
pub fn push_last(&self, value: E) -> Self
pub fn push_first(&self, value: E) -> Self
pub fn pop_first_value(&self) -> Self
pub fn pop_last_value(&self) -> Self
pub fn iter(&self) -> impl Iterator<Item = &E>
Trait Implementations§
Source§impl<E: Clone> FromIterator<E> for Standard<E>
impl<E: Clone> FromIterator<E> for Standard<E>
Source§fn from_iter<T: IntoIterator<Item = E>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = E>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<E: Clone> IPeekFirst<E> for Standard<E>
impl<E: Clone> IPeekFirst<E> for Standard<E>
fn peek_first(&self) -> Option<E>
impl<E: Clone> IPersistent for Standard<E>
Source§impl<E: Clone> IPushFirst<E> for Standard<E>
impl<E: Clone> IPushFirst<E> for Standard<E>
Source§impl<E: Clone> IToMutable for Standard<E>
impl<E: Clone> IToMutable for Standard<E>
Source§impl<E: Clone> IntoIterator for Standard<E>
impl<E: Clone> IntoIterator for Standard<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Standard<E>
impl<E> !Send for Standard<E>
impl<E> !Sync for Standard<E>
impl<E> !UnwindSafe for Standard<E>
impl<E> Freeze for Standard<E>
impl<E> Unpin for Standard<E>
impl<E> UnsafeUnpin for Standard<E>
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