Struct HCons

Source
pub struct HCons<H, T>(/* private fields */);

Trait Implementations§

Source§

impl<HA, TA, HB, TB, Ordering> Intersect<HCons<HB, TB>> for HCons<HA, TA>
where HA: Cmp<HB, Output = Ordering>, HCons<HA, TA>: IntersectByOrder<HCons<HB, TB>, Ordering>, HCons<HB, TB>: SortedHList,

Source§

type Output = <HCons<HA, TA> as IntersectByOrder<HCons<HB, TB>, Ordering>>::Output

Source§

impl<H, T> Intersect<HNil> for HCons<H, T>
where HCons<H, T>: SortedHList,

Source§

impl<HA, TA, HB, TB: SortedHList> IntersectByOrder<HCons<HB, TB>, Equal> for HCons<HA, TA>
where Self: SortedHList, HCons<HB, TB>: SortedHList, TA: Intersect<TB>, HCons<HA, <TA as Intersect<TB>>::Output>: SortedHList,

Source§

type Output = HCons<HA, <TA as Intersect<TB>>::Output>

Source§

impl<HA, TA, HB, TB: SortedHList> IntersectByOrder<HCons<HB, TB>, Greater> for HCons<HA, TA>
where HCons<HA, TA>: SortedHList, HCons<HB, TB>: SortedHList, Self: Intersect<TB>,

Source§

type Output = <HCons<HA, TA> as Intersect<TB>>::Output

Source§

impl<HA, TA, HB, TB> IntersectByOrder<HCons<HB, TB>, Less> for HCons<HA, TA>
where Self: SortedHList, HCons<HB, TB>: SortedHList, TA: Intersect<HCons<HB, TB>>,

Source§

type Output = <TA as Intersect<HCons<HB, TB>>>::Output

Source§

impl<H, T: HList> HList for HCons<H, T>

Source§

impl<H, T: HList> NonEmptyHList for HCons<H, T>

Source§

impl<H, HT, TT> SortedHList for HCons<H, HCons<HT, TT>>
where HCons<HT, TT>: SortedHList, H: Cmp<HT>, <H as Cmp<HT>>::Output: LeOrEq,

Source§

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>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.