mlir::attributes::specialized

Trait NamedOpaque

Source
pub trait NamedOpaque:
    From<MlirAttribute>
    + IAttributeNamed
    + Sized {
    // Provided methods
    fn new(t: &Type, namespace: &StringRef, data: &StringRef) -> Self { ... }
    fn new_custom(t: &Type, cad: &CustomAttributeData) -> Self { ... }
    fn from_checked(attr: MlirAttribute) -> Self { ... }
    fn as_opaque(&self) -> Opaque { ... }
}

Provided Methods§

Source

fn new(t: &Type, namespace: &StringRef, data: &StringRef) -> Self

Source

fn new_custom(t: &Type, cad: &CustomAttributeData) -> Self

Source

fn from_checked(attr: MlirAttribute) -> Self

Source

fn as_opaque(&self) -> Opaque

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§