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<'a> ByRef<'a> for Queue<()>
[src]
impl<'a, H: 'a, T: 'a, R: 'a> ByRef<'a> for Queue<(H, T)> where
H: ByRef<'a, Refs = R>,
[src]
H: ByRef<'a, Refs = R>,
impl<I, F> Foldable<I, F> for Queue<()>
[src]
impl<I, F, H, T> Foldable<I, F> for Queue<(H, T)> where
H: for<'a> Foldable<I, &'a mut F>,
F: FnMut<(T, I), Output = I>,
[src]
H: for<'a> Foldable<I, &'a mut F>,
F: FnMut<(T, I), Output = I>,
impl<F> Functor<F> for Queue<()>
[src]
type Output = Queue<()>
Result of mapping
fn fmap(self, _: F) -> Queue<()>
[src]
Map sequence using F
unction
impl<'a, F> Functor<F> for &'a Queue<()>
[src]
type Output = Queue<()>
Result of mapping
fn fmap(self, _: F) -> Queue<()>
[src]
Map sequence using F
unction
impl<F, H, T, O, U> Functor<F> for Queue<(H, T)> where
H: for<'a> Functor<&'a mut F, Output = U>,
F: FnMut<(T,), Output = O>,
[src]
H: for<'a> Functor<&'a mut F, Output = U>,
F: FnMut<(T,), Output = O>,
type Output = Queue<(U, O)>
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 Queue<(H, T)> where
&'a mut H: for<'b> Functor<&'b mut F, Output = U>,
F: FnMut<(&'a mut T,), Output = O>,
[src]
&'a mut H: for<'b> Functor<&'b mut F, Output = U>,
F: FnMut<(&'a mut T,), Output = O>,
type Output = Queue<(U, O)>
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 Queue<(H, T)> where
&'a H: for<'b> Functor<&'b mut F, Output = U>,
F: FnMut<(&'a T,), Output = O>,
[src]
&'a H: for<'b> Functor<&'b mut F, Output = U>,
F: FnMut<(&'a T,), Output = O>,
type Output = Queue<(U, O)>
Result of mapping
fn fmap(self, f: F) -> Self::Output
[src]
Map sequence using F
unction
impl Length for Queue<()>
[src]
impl<H, T> Length for Queue<(H, T)> where
H: Length,
[src]
H: Length,
impl<E> Try<E> for Queue<()>
[src]
impl<E, H, T, Z> Try<E> for Queue<(H, Result<T, E>)> where
H: Try<E, Ok = Z>,
[src]
H: Try<E, Ok = Z>,
impl<Q: Clone> Clone for Queue<Q>
[src]
fn clone(&self) -> Queue<Q>
[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<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
[src]
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
[src]
This method tests for !=
.
impl<Q: PartialOrd> PartialOrd for Queue<Q>
[src]
fn partial_cmp(&self, __arg_0: &Queue<Q>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Queue<Q>) -> bool
[src]
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
[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: &Queue<Q>) -> bool
[src]
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
[src]
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
[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 Zip<Queue<()>> for Queue<()>
[src]
impl<LH, LT, RH, RT, ZH> Zip<Queue<(RH, RT)>> for Queue<(LH, LT)> where
LH: Zip<RH, Zipped = ZH>,
[src]
LH: Zip<RH, Zipped = ZH>,