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]

[src]

impl<L> List<L>
[src]

[src]

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

[src]

[src]

Trait Implementations

impl<'a> ByRef<'a> for List<()>
[src]

[src]

impl<'a, H: 'a, T: 'a, R: 'a> ByRef<'a> for List<(H, T)> where
    T: ByRef<'a, Refs = R>, 
[src]

[src]

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

[src]

fold sequence using Function starting with Init value

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

[src]

fold sequence using Function starting with Init value

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

Result of mapping

[src]

Map sequence using Function

impl<'a, F> Functor<F> for &'a List<()>
[src]

Result of mapping

[src]

Map sequence using Function

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

Result of mapping

[src]

Map sequence using Function

impl<'a, F, H, T, O, U> Functor<F> for &'a mut List<(H, T)> where
    &'a mut T: Functor<F, Output = U>,
    F: FnMut<(&'a mut H,), Output = O>, 
[src]

Result of mapping

[src]

Map sequence using Function

impl<'a, F, H, T, O, U> Functor<F> for &'a List<(H, T)> where
    &'a T: Functor<F, Output = U>,
    F: FnMut<(&'a H,), Output = O>, 
[src]

Result of mapping

[src]

Map sequence using Function

impl Length for List<()>
[src]

[src]

impl<H, T> Length for List<(H, T)> where
    T: Length
[src]

[src]

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

Formats the value using the given formatter.

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

[src]

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

[src]

This method tests for !=.

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<L> IntoList for List<L>
[src]

[src]

impl<E> Try<E> for List<()>
[src]

Sequence of Ok Results

[src]

impl<E, H, T, Z> Try<E> for List<(Result<H, E>, T)> where
    T: Try<E, Ok = Z>, 
[src]

Sequence of Ok Results

[src]

impl Zip<List<()>> for List<()>
[src]

[src]

impl<LH, LT, RH, RT, ZT> Zip<List<(RH, RT)>> for List<(LH, LT)> where
    LT: Zip<RT, Zipped = ZT>, 
[src]

[src]