mlir::attributes::specialized

Trait NamedArrayOfStrings

Source
pub trait NamedArrayOfStrings:
    From<MlirAttribute>
    + IAttributeNamed
    + Sized {
    // Provided methods
    fn new(context: &Context, elements: &[StringAttr]) -> Self { ... }
    fn from_checked(attr: MlirAttribute) -> Self { ... }
    fn as_array(&self) -> Array { ... }
    fn as_strings(&self) -> Vec<StringAttr> { ... }
    fn num_elements(&self) -> isize { ... }
}

Provided Methods§

Source

fn new(context: &Context, elements: &[StringAttr]) -> Self

Source

fn from_checked(attr: MlirAttribute) -> Self

Source

fn as_array(&self) -> Array

Source

fn as_strings(&self) -> Vec<StringAttr>

Source

fn num_elements(&self) -> isize

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§