Struct immut_list::ImmutList
[−]
[src]
pub struct ImmutList<T> { /* fields omitted */ }
Methods
impl<T> ImmutList<T>
[src]
impl<'a, T> ImmutList<T> where
T: 'a,
[src]
T: 'a,
fn iter(&'a self) -> ImmutListIter<'a, T>
[src]
Trait Implementations
impl<T: Clone> Clone for ImmutList<T>
[src]
fn clone(&self) -> ImmutList<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for ImmutList<T>
[src]
impl<T: PartialEq> PartialEq for ImmutList<T>
[src]
fn eq(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests for !=
.
impl<T: Ord> Ord for ImmutList<T>
[src]
fn cmp(&self, __arg_0: &ImmutList<T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<T: PartialOrd> PartialOrd for ImmutList<T>
[src]
fn partial_cmp(&self, __arg_0: &ImmutList<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ImmutList<T>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Hash> Hash for ImmutList<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> Send for ImmutList<T>
[src]
impl<T> Sync for ImmutList<T>
[src]
impl<T> From<ImmutListBuilder<T>> for ImmutList<T>
[src]
fn from(builder: ImmutListBuilder<T>) -> Self
[src]
Performs the conversion.
impl<T> Debug for ImmutList<T> where
T: Debug,
[src]
T: Debug,
impl<T> Display for ImmutList<T> where
T: Debug + Display,
[src]
T: Debug + Display,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Default for ImmutList<T>
[src]
impl<T> Collection for ImmutList<T>
[src]
impl<T> Create<T> for ImmutList<T>
[src]
fn create() -> Self
[src]
fn create_with_capacity(_: usize) -> Self
[src]
fn add_element(self, element: T) -> Self
[src]
impl<T> StackImmut<T> for ImmutList<T>
[src]
fn push(&self, data: T) -> Self
[src]
fn pop(&self) -> Self
[src]
fn top(&self) -> Option<&T>
[src]
fn pop_and_top(&self) -> (Self, Option<&T>)
[src]
impl<T> Get<usize> for ImmutList<T>
[src]
impl<'a, T> IntoIterator for &'a ImmutList<T> where
T: 'a,
[src]
T: 'a,
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = ImmutListIter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<T> FromIterator<T> for ImmutList<T>
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = T>,
[src]
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more