[][src]Enum gf::datamodel::TyInstanceCtor

pub enum TyInstanceCtor<'a> {
    Ty(TyOrSelf<'a>, Vec<TyArgCtor<'a>>),

Type instance constructor.


Ty(TyOrSelf<'a>, Vec<TyArgCtor<'a>>)

The type instance is constructed from type and argument constructors.


The type instance is copied from a type argument.


impl<'a> TyInstanceCtor<'a>[src]

pub fn new_bytes(bytes: u64, endianness: Endianness) -> Self[src]

Create a type instance constructor of the raw type for given number of bytes.

pub fn from_ty_instance(ty_instance: TyInstance<'a>) -> Self[src]

Create a type instance constructor from a type instance.

Trait Implementations

impl<'a> Eval<'a> for TyInstanceCtor<'a>[src]

type Output = TyInstance<'a>

Evaluation output type.

impl<'a> Clone for TyInstanceCtor<'a>[src]

Auto Trait Implementations

impl<'a> Send for TyInstanceCtor<'a>

impl<'a> Sync for TyInstanceCtor<'a>

impl<'a> Unpin for TyInstanceCtor<'a>

impl<'a> UnwindSafe for TyInstanceCtor<'a>

impl<'a> RefUnwindSafe for TyInstanceCtor<'a>

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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