Struct frunk_core::hlist::HNil
[−]
[src]
pub struct HNil;
Represents the right-most end of a heterogeneous list
Examples
let h = h_cons(1, HNil); let h = h.head; assert_eq!(h, 1);Run
Trait Implementations
impl PartialEq for HNil
[src]
fn eq(&self, __arg_0: &HNil) -> bool
[src]
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[src]
This method tests for !=
.
impl Debug for HNil
[src]
impl Eq for HNil
[src]
impl Clone for HNil
[src]
fn clone(&self) -> HNil
[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 Copy for HNil
[src]
impl PartialOrd for HNil
[src]
fn partial_cmp(&self, __arg_0: &HNil) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
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[src]
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[src]
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[src]
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
[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 Hash for HNil
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl HList for HNil
[src]
const LEN: usize
LEN: usize = 0
Returns the length of a given HList type without making use of any references, or in fact, any values at all. Read more
fn static_len() -> usize
[src]
: Please use LEN instead
Returns the length of a given HList type without making use of any references, or in fact, any values at all. Read more
fn length(&self) -> u32
[src]
: Please use len() or static_len() instead.
fn len(&self) -> usize
[src]
Returns the length of a given HList Read more
fn prepend<H>(self, h: H) -> HCons<H, Self>
[src]
Prepends an item to the current HList Read more
impl AsRef<HNil> for HNil
[src]
impl<RHS> Add<RHS> for HNil where
RHS: HList,
[src]
RHS: HList,
type Output = RHS
The resulting type after applying the +
operator.
fn add(self, rhs: RHS) -> RHS
[src]
Performs the +
operation.
impl IntoReverse for HNil
[src]
type Output = HNil
fn into_reverse(self) -> Self::Output
[src]
Reverses a given data structure. Read more
impl<F> HMappable<F> for HNil
[src]
type Output = HNil
fn map(self, _: F) -> Self::Output
[src]
Maps over the current data structure using functions stored in another data structure. Read more
impl<F, Init> HFoldRightable<F, Init, Here> for HNil
[src]
type Output = Init
fn foldr(self, _: F, i: Init) -> Self::Output
[src]
foldr over a data structure Read more
impl<F, Acc> HFoldLeftable<F, Acc, Here> for HNil
[src]
type Output = Acc
fn foldl(self, _: F, acc: Acc) -> Self::Output
[src]
foldl over a data structure Read more
impl IntoUnlabelled for HNil
[src]
Implementation for HNil