mlir::attributes::specialized

Trait NamedSymbolRef

Source
pub trait NamedSymbolRef:
    From<MlirAttribute>
    + IAttributeNamed
    + Sized {
    // Provided methods
    fn new(context: &Context, s: &StringRef) -> Self { ... }
    fn from_checked(attr: MlirAttribute) -> Self { ... }
    fn from_symbol_ref(s_ref: &SymbolRef) -> Self { ... }
    fn as_string_ref(&self) -> StringRef { ... }
    fn as_symbol_ref(&self) -> SymbolRef { ... }
}

Provided Methods§

Source

fn new(context: &Context, s: &StringRef) -> Self

Source

fn from_checked(attr: MlirAttribute) -> Self

Source

fn from_symbol_ref(s_ref: &SymbolRef) -> Self

Source

fn as_string_ref(&self) -> StringRef

Source

fn as_symbol_ref(&self) -> SymbolRef

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§