Struct frunk_core::hlist::HNil
[−]
[src]
pub struct HNil;
Represents the right-most end of a heterogeneous list
Used to begin one:
let h = h_cons(1, HNil); let h = h.head; assert_eq!(h, 1);
Trait Implementations
impl PartialEq for HNil
[src]
fn eq(&self, __arg_0: &HNil) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for HNil
[src]
impl Eq for HNil
[src]
impl Clone for HNil
[src]
fn clone(&self) -> HNil
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 Copy for HNil
[src]
impl PartialOrd for HNil
[src]
fn partial_cmp(&self, __arg_0: &HNil) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for HNil
[src]
fn cmp(&self, __arg_0: &HNil) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl HList for HNil
[src]
fn length(&self) -> u32
Returns the length of a given HList Read more
fn prepend<H>(self, h: H) -> HCons<H, Self>
Prepends an item to the current HList Read more
impl<RHS> Add<RHS> for HNil where RHS: HList
[src]
type Output = RHS
The resulting type after applying the +
operator
fn add(self, rhs: RHS) -> RHS
The method for the +
operator
impl IntoReverse for HNil
[src]
impl<F> HMappable<F> for HNil
[src]
type Output = HNil
fn map(self, _: F) -> Self::Output
Maps over the current data structure using functions stored in another data structure. Read more
impl<F, Init> HFoldRightable<F, Init> for HNil
[src]
type Output = Init
fn foldr(self, _: F, i: Init) -> Self::Output
foldr over a data structure Read more