CTConsTerm

Enum CTConsTerm 

Source
pub enum CTConsTerm {}
Expand description

Termination type for Cons.

Use this type to construct a new cons list (CTCons). See CTAppend for more information.

Trait Implementations§

Source§

impl<X> CTAppend<X> for CTConsTerm
where X: 'static,

Source§

type Output = Cons<CTConsTerm, X>

The new compile time structure which consists of the implemented structure with X as new item.
Source§

impl CTCons for CTConsTerm

Source§

type Head = ()

The head of the list. This is exactly one item.
Source§

type Tail = CTConsTerm

This is the parent of the implemented type. The tail contains all items except the Head of the implemented type.
Source§

impl<Target> CTOffset<Target> for CTConsTerm

Source§

type Offset = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>

The offset representation of the type Target within the implemented compile time structure. Read more
Source§

fn offset() -> usize

Returns a value representing the offset within the compile time structure.

Auto Trait Implementations§

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<C> CTOffsetExt for C
where C: CTCons,

Source§

fn offset_of<X>() -> usize
where C: CTOffset<X>,

Returns the offset of the provided type within the implemented compile time structure.
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.