[][src]Struct cranelift_codegen_meta::cdsl::typevar::TypeVarContent

pub(crate) struct TypeVarContent {
    pub name: String,
    pub doc: String,
    type_set: TypeSet,
    pub base: Option<TypeVarParent>,
}

Type variables can be used in place of concrete types when defining instructions. This makes the instructions polymorphic.

A type variable is restricted to vary over a subset of the value types. This subset is specified by a set of flags that control the permitted base types and whether the type variable can assume scalar or vector types, or both.

Fields

name: String

Short name of type variable used in instruction descriptions.

doc: String

Documentation string.

type_set: TypeSet

Type set associated to the type variable. This field must remain private; use get_typeset() or get_raw_typeset() to get the information you want.

base: Option<TypeVarParent>

Trait Implementations

impl Debug for TypeVarContent[src]

Auto Trait Implementations

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, 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.