[][src]Struct cranelift_codegen_meta::cdsl::operands::OperandKind

pub(crate) struct OperandKind {
    pub rust_type: &'static str,
    pub rust_field_name: &'static str,
    pub fields: OperandKindFields,
    doc: Option<&'static str>,
}

Fields

rust_type: &'static str

String representation of the Rust type mapping to this OperandKind.

rust_field_name: &'static str

Name of this OperandKind in the format's member field.

fields: OperandKindFields

Type-specific fields for this OperandKind.

doc: Option<&'static str>

Methods

impl OperandKind[src]

pub fn new(
    rust_field_name: &'static str,
    rust_type: &'static str,
    fields: OperandKindFields
) -> Self
[src]

pub fn with_doc(self, doc: &'static str) -> Self[src]

fn doc(&self) -> Option<&str>[src]

Trait Implementations

impl Clone for OperandKind[src]

impl Debug for OperandKind[src]

impl<'_> Into<OperandKind> for &'_ TypeVar[src]

impl<'_> Into<OperandKind> for &'_ OperandKind[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.