Struct hetseq::Queue
[−]
[src]
pub struct Queue<Q>(pub Q);
Heterogenous queue Supports pushing, splitting to init and last Mapping and folding
Methods
impl Queue<()>[src]
impl<Q> Queue<Q>[src]
impl<H, T> Queue<(Queue<H>, T)>[src]
Trait Implementations
impl<I, F> Foldable<I, F> for Queue<()>[src]
fn fold(self, init: I, _: F) -> I
fold sequence using Function starting with Init value
impl<I, X, H, T> Foldable<I, X> for Queue<(Queue<H>, T)> where
Queue<H>: Foldable<I, X>,
X: Fn<(T, I), Output = I> + Clone, [src]
Queue<H>: Foldable<I, X>,
X: Fn<(T, I), Output = I> + Clone,
fn fold(self, init: I, f: X) -> I
fold sequence using Function starting with Init value
impl<F> Functor<F> for Queue<()>[src]
type Output = Queue<()>
Result of mapping
fn fmap(self, _: F) -> Queue<()>
Map sequence using Function
impl<X, H, T, O, U> Functor<X> for Queue<(Queue<H>, T)> where
Queue<H>: Functor<X, Output = Queue<U>>,
X: Fn<(T,), Output = O> + Clone, [src]
Queue<H>: Functor<X, Output = Queue<U>>,
X: Fn<(T,), Output = O> + Clone,
type Output = Queue<(Queue<U>, O)>
Result of mapping
fn fmap(self, f: X) -> Self::Output
Map sequence using Function
impl<Q: Clone> Clone for Queue<Q>[src]
fn clone(&self) -> Queue<Q>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<Q: Copy> Copy for Queue<Q>[src]
impl<Q: Debug> Debug for Queue<Q>[src]
impl<Q: PartialEq> PartialEq for Queue<Q>[src]
fn eq(&self, __arg_0: &Queue<Q>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Queue<Q>) -> bool
This method tests for !=.
impl<Q: PartialOrd> PartialOrd for Queue<Q>[src]
fn partial_cmp(&self, __arg_0: &Queue<Q>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &Queue<Q>) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &Queue<Q>) -> bool
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: &Queue<Q>) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &Queue<Q>) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<Q: Eq> Eq for Queue<Q>[src]
impl<Q: Ord> Ord for Queue<Q>[src]
fn cmp(&self, __arg_0: &Queue<Q>) -> Ordering
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self
ord_max_min)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min)Compares and returns the minimum of two values. Read more