mlir::types

Trait IType

Source
pub trait IType {
    // Required methods
    fn get(&self) -> &MlirType;
    fn get_mut(&mut self) -> &mut MlirType;

    // Provided methods
    fn as_type(&self) -> Type { ... }
    fn get_context(&self) -> Context { ... }
}

Required Methods§

Source

fn get(&self) -> &MlirType

Source

fn get_mut(&mut self) -> &mut MlirType

Provided Methods§

Source

fn as_type(&self) -> Type

Source

fn get_context(&self) -> Context

Trait Implementations§

Source§

impl GetWidth for dyn IType

Source§

impl<T: IType> IsPromotableTo<T> for dyn IType

Source§

fn is_promotable_to(&self, other: &T) -> bool

Source§

impl PartialEq for dyn IType

Source§

fn eq(&self, rhs: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§