pub enum Tuple<E> {
Tup0,
Tup1([E; 1]),
Tup2([E; 2]),
Tup3([E; 3]),
Tup4([E; 4]),
Tup5([E; 5]),
Tup6([E; 6]),
Tup7([E; 7]),
Tup8([E; 8]),
WithMeta(Rc<Metadata>, Box<Tuple<E>>),
}Variants§
Tup0
Tup1([E; 1])
Tup2([E; 2])
Tup3([E; 3])
Tup4([E; 4])
Tup5([E; 5])
Tup6([E; 6])
Tup7([E; 7])
Tup8([E; 8])
WithMeta(Rc<Metadata>, Box<Tuple<E>>)
Implementations§
Source§impl<E: Clone> Tuple<E>
impl<E: Clone> Tuple<E>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&E>
pub fn iter(&self) -> impl Iterator<Item = &E>
pub fn from_values(values: Vec<E>) -> Result<Self, String>
pub fn push_first(&self, value: E) -> Result<Self, String>
pub fn push_last(&self, value: E) -> Result<Self, String>
pub fn pop_first(&self) -> Self
pub fn pop_last(&self) -> Self
pub fn peek_first(&self) -> Option<&E>
pub fn peek_last(&self) -> Option<&E>
Trait Implementations§
impl<E: Clone + Eq> Eq for Tuple<E>
Source§impl<E: Clone> IPeekFirst<E> for Tuple<E>
impl<E: Clone> IPeekFirst<E> for Tuple<E>
fn peek_first(&self) -> Option<E>
impl<E: Clone> IPersistent for Tuple<E>
Source§impl<E: Clone> IPushFirst<E> for Tuple<E>
impl<E: Clone> IPushFirst<E> for Tuple<E>
Source§impl<E: Clone> IntoIterator for Tuple<E>
impl<E: Clone> IntoIterator for Tuple<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Tuple<E>
impl<E> !Send for Tuple<E>
impl<E> !Sync for Tuple<E>
impl<E> !UnwindSafe for Tuple<E>
impl<E> Freeze for Tuple<E>
impl<E> Unpin for Tuple<E>
impl<E> UnsafeUnpin for Tuple<E>where
[E; 1]: UnsafeUnpin,
[E; 2]: UnsafeUnpin,
[E; 3]: UnsafeUnpin,
[E; 4]: UnsafeUnpin,
[E; 5]: UnsafeUnpin,
[E; 6]: UnsafeUnpin,
[E; 7]: UnsafeUnpin,
[E; 8]: UnsafeUnpin,
Box<Tuple<E>>: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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