mlir::attributes::specialized

Trait NamedMemorySpace

Source
pub trait NamedMemorySpace:
    From<MlirAttribute>
    + IAttributeNamed
    + PartialEq
    + Sized {
Show 14 methods // Required method fn from_checked(attr: MlirAttribute) -> Self; // Provided methods fn new_integer(attr: &IntegerAttr) -> Self { ... } fn new_none() -> Self { ... } fn new_opaque(attr: &Opaque) -> Self { ... } fn new_string(attr: &StringAttr) -> Self { ... } fn as_integer(&self) -> Option<IntegerAttr> { ... } fn as_none(&self) -> Option<Attribute> { ... } fn as_opaque(&self) -> Option<Opaque> { ... } fn as_string(&self) -> Option<StringAttr> { ... } fn eq(&self, rhs: &Self) -> bool { ... } fn is_integer(&self) -> bool { ... } fn is_none(&self) -> bool { ... } fn is_opaque(&self) -> bool { ... } fn is_string(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

Source

fn new_integer(attr: &IntegerAttr) -> Self

Source

fn new_none() -> Self

Source

fn new_opaque(attr: &Opaque) -> Self

Source

fn new_string(attr: &StringAttr) -> Self

Source

fn as_integer(&self) -> Option<IntegerAttr>

Source

fn as_none(&self) -> Option<Attribute>

Source

fn as_opaque(&self) -> Option<Opaque>

Source

fn as_string(&self) -> Option<StringAttr>

Source

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

Source

fn is_integer(&self) -> bool

Source

fn is_none(&self) -> bool

Source

fn is_opaque(&self) -> bool

Source

fn is_string(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§