Struct hetseq::List [] [src]

pub struct List<L>(pub L);

Heterogenous list Supports pushing, splitting to head and tail Mapping and folding

Methods

impl List<()>
[src]

impl<L> List<L>
[src]

impl<H, T> List<(H, List<T>)>
[src]

Trait Implementations

impl<I, F> Foldable<I, F> for List<()>
[src]

fold sequence using Function starting with Init value

impl<I, X, H, T> Foldable<I, X> for List<(H, List<T>)> where
    List<T>: Foldable<I, X>,
    X: Fn<(H, I), Output = I>, 
[src]

fold sequence using Function starting with Init value

impl<F> Functor<F> for List<()>
[src]

Result of mapping

Map sequence using Function

impl<X, H, T, O, U> Functor<X> for List<(H, List<T>)> where
    List<T>: Functor<X, Output = List<U>>,
    X: Fn<(H,), Output = O>, 
[src]

Result of mapping

Map sequence using Function

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<L: Copy> Copy for List<L>
[src]

impl<L: Debug> Debug for List<L>
[src]

Formats the value using the given formatter.

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

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

This method tests for !=.

impl<L: PartialOrd> PartialOrd for List<L>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

impl<L: Ord> Ord for List<L>
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more