[−][src]Struct pl_hlist::HCons
The "cons" of a head element of type H
and a tail HList
.
Implementations
impl<H, T: HList> HCons<H, T>
[src]
pub fn head(&self) -> &H
[src]
Returns a reference to the head element of this list.
pub fn tail(&self) -> &T
[src]
Returns a reference to the tail of this list.
Trait Implementations
impl<H: Clone, T: Clone + HList> Clone for HCons<H, T>
[src]
impl<H: Copy, T: Copy + HList> Copy for HCons<H, T>
[src]
impl<H: Debug, T: Debug + HList> Debug for HCons<H, T>
[src]
impl<H: Eq, T: Eq + HList> Eq for HCons<H, T>
[src]
impl<H, T: HList> HList for HCons<H, T>
[src]
impl<H: Hash, T: Hash + HList> Hash for HCons<H, T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<H: Ord, T: Ord + HList> Ord for HCons<H, T>
[src]
fn cmp(&self, other: &HCons<H, T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<H: PartialEq, T: PartialEq + HList> PartialEq<HCons<H, T>> for HCons<H, T>
[src]
impl<H: PartialOrd, T: PartialOrd + HList> PartialOrd<HCons<H, T>> for HCons<H, T>
[src]
fn partial_cmp(&self, other: &HCons<H, T>) -> Option<Ordering>
[src]
fn lt(&self, other: &HCons<H, T>) -> bool
[src]
fn le(&self, other: &HCons<H, T>) -> bool
[src]
fn gt(&self, other: &HCons<H, T>) -> bool
[src]
fn ge(&self, other: &HCons<H, T>) -> bool
[src]
impl<H, T: HList> StructuralEq for HCons<H, T>
[src]
impl<H, T: HList> StructuralPartialEq for HCons<H, T>
[src]
Auto Trait Implementations
impl<H, T> RefUnwindSafe for HCons<H, T> where
H: RefUnwindSafe,
T: RefUnwindSafe,
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for HCons<H, T> where
H: Send,
T: Send,
H: Send,
T: Send,
impl<H, T> Sync for HCons<H, T> where
H: Sync,
T: Sync,
H: Sync,
T: Sync,
impl<H, T> Unpin for HCons<H, T> where
H: Unpin,
T: Unpin,
H: Unpin,
T: Unpin,
impl<H, T> UnwindSafe for HCons<H, T> where
H: UnwindSafe,
T: UnwindSafe,
H: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,