pub struct HCons<H, T>(/* private fields */);
Expand description
A non-empty type-level list, with head of type H
and tail T
.
§Type Parameters
H
: the type of the first element.T
: the rest of the list (must itself be anHList
).
Trait Implementations§
Source§impl<HA, TA, HB, TB: HList> IntersectByOrder<HCons<HB, TB>, Equal> for HCons<HA, TA>where
TA: IntersectUnchecked<TB> + HList,
impl<HA, TA, HB, TB: HList> IntersectByOrder<HCons<HB, TB>, Equal> for HCons<HA, TA>where
TA: IntersectUnchecked<TB> + HList,
Source§impl<HA, TA: HList, HB, TB: HList> IntersectByOrder<HCons<HB, TB>, Greater> for HCons<HA, TA>where
HCons<HA, TA>: IntersectUnchecked<TB>,
impl<HA, TA: HList, HB, TB: HList> IntersectByOrder<HCons<HB, TB>, Greater> for HCons<HA, TA>where
HCons<HA, TA>: IntersectUnchecked<TB>,
Source§impl<HA, TA: HList, HB, TB: HList, Ordering> IntersectUnchecked<HCons<HB, TB>> for HCons<HA, TA>
impl<HA, TA: HList, HB, TB: HList, Ordering> IntersectUnchecked<HCons<HB, TB>> for HCons<HA, TA>
impl<H, T: HList> HList for HCons<H, T>
impl<H, T: HList> NonEmptyHList for HCons<H, T>
impl<H, HT, TT> SortedHList for HCons<H, HCons<HT, TT>>
impl<H> SortedHList for HCons<H, HNil>
Auto Trait Implementations§
impl<H, T> Freeze for HCons<H, T>
impl<H, T> RefUnwindSafe for HCons<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for HCons<H, T>
impl<H, T> Sync for HCons<H, T>
impl<H, T> Unpin for HCons<H, T>
impl<H, T> UnwindSafe for HCons<H, T>where
H: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<LA, LB> Intersect<LB> for LA
impl<LA, LB> Intersect<LB> for LA
Source§type Output = <LA as IntersectUnchecked<LB>>::Output
type Output = <LA as IntersectUnchecked<LB>>::Output
Intersection of two sorted lists. Must itself be an
HList
.