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<'a> ByRef<'a> for List<()>
[src]
impl<'a, H: 'a, T: 'a, R: 'a> ByRef<'a> for List<(H, T)> where
T: ByRef<'a, Refs = R>,
[src]
T: ByRef<'a, Refs = R>,
impl<I, F> Foldable<I, F> for List<()>
[src]
impl<I, F, H, T> Foldable<I, F> for List<(H, T)> where
T: Foldable<I, F>,
F: FnMut<(H, I), Output = I>,
[src]
T: Foldable<I, F>,
F: FnMut<(H, I), Output = I>,
impl<F> Functor<F> for List<()>
[src]
type Output = List<()>
Result of mapping
fn fmap(self, _: F) -> List<()>
[src]
Map sequence using F
unction
impl<'a, F> Functor<F> for &'a List<()>
[src]
type Output = List<()>
Result of mapping
fn fmap(self, _: F) -> List<()>
[src]
Map sequence using F
unction
impl<F, H, T, O, U> Functor<F> for List<(H, T)> where
T: Functor<F, Output = U>,
F: FnMut<(H,), Output = O>,
[src]
T: Functor<F, Output = U>,
F: FnMut<(H,), Output = O>,
type Output = List<(O, U)>
Result of mapping
fn fmap(self, f: F) -> Self::Output
[src]
Map sequence using F
unction
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]
&'a mut T: Functor<F, Output = U>,
F: FnMut<(&'a mut H,), Output = O>,
type Output = List<(O, U)>
Result of mapping
fn fmap(self, f: F) -> Self::Output
[src]
Map sequence using F
unction
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]
&'a T: Functor<F, Output = U>,
F: FnMut<(&'a H,), Output = O>,
type Output = List<(O, U)>
Result of mapping
fn fmap(self, f: F) -> Self::Output
[src]
Map sequence using F
unction
impl Length for List<()>
[src]
impl<H, T> Length for List<(H, T)> where
T: Length,
[src]
T: Length,
impl<L: Clone> Clone for List<L>
[src]
fn clone(&self) -> List<L>
[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<L: Copy> Copy for List<L>
[src]
impl<L: Debug> Debug for List<L>
[src]
impl<L: PartialEq> PartialEq for List<L>
[src]
fn eq(&self, __arg_0: &List<L>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &List<L>) -> bool
[src]
This method tests for !=
.
impl<L: PartialOrd> PartialOrd for List<L>
[src]
fn partial_cmp(&self, __arg_0: &List<L>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &List<L>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &List<L>) -> 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: &List<L>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &List<L>) -> bool
[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]
fn cmp(&self, __arg_0: &List<L>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl<L> IntoList for List<L>
[src]
impl<E> Try<E> for List<()>
[src]
impl<E, H, T, Z> Try<E> for List<(Result<H, E>, T)> where
T: Try<E, Ok = Z>,
[src]
T: Try<E, Ok = Z>,
impl Zip<List<()>> for List<()>
[src]
impl<LH, LT, RH, RT, ZT> Zip<List<(RH, RT)>> for List<(LH, LT)> where
LT: Zip<RT, Zipped = ZT>,
[src]
LT: Zip<RT, Zipped = ZT>,