Enum immutable::list::List [] [src]

pub enum List<E> {
    Empty,
    Cons(E, Rc<List<E>>),
}

Variants

Methods

impl<E: Clone> List<E>
[src]

Trait Implementations

impl<E: Clone> Clone for List<E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: PartialEq> PartialEq for List<E>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<E: Eq> Eq for List<E>
[src]

impl<E: Debug + Clone> Debug for List<E>
[src]

Formats the value using the given formatter.

impl<E: Clone> FromIterator<E> for List<E>
[src]

Creates a value from an iterator. Read more

impl<'a, E: Clone> IntoIterator for &'a List<E>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more