pub struct TCons<H, T: TList>(_);
Expand description
A non-empty TList whose first element is H
and whose tail is the TList T
.
Trait Implementations§
source§impl<H: Ord, T: Ord + TList> Ord for TCons<H, T>
impl<H: Ord, T: Ord + TList> Ord for TCons<H, T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<H: PartialEq, T: PartialEq + TList> PartialEq<TCons<H, T>> for TCons<H, T>
impl<H: PartialEq, T: PartialEq + TList> PartialEq<TCons<H, T>> for TCons<H, T>
source§impl<H: PartialOrd, T: PartialOrd + TList> PartialOrd<TCons<H, T>> for TCons<H, T>
impl<H: PartialOrd, T: PartialOrd + TList> PartialOrd<TCons<H, T>> for TCons<H, T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more