[][src]Struct pl_hlist::HCons

pub struct HCons<H, T: HList>(pub H, pub T);

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]

impl<H: Ord, T: Ord + HList> Ord for HCons<H, T>[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]

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

impl<H, T> Send for HCons<H, T> where
    H: Send,
    T: Send

impl<H, T> Sync for HCons<H, T> where
    H: Sync,
    T: Sync

impl<H, T> Unpin for HCons<H, T> where
    H: Unpin,
    T: Unpin

impl<H, T> UnwindSafe for HCons<H, T> where
    H: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.