mlir::attributes::specialized

Trait NamedArrayOfIntegers

Source
pub trait NamedArrayOfIntegers:
    From<MlirAttribute>
    + IAttributeNamed
    + Sized {
    // Provided methods
    fn new(context: &Context, elements: &[IntegerAttr]) -> Self { ... }
    fn new_i32(context: &Context, elements: &[i32]) -> Self { ... }
    fn new_i64(context: &Context, elements: &[i64]) -> Self { ... }
    fn from_checked(attr: MlirAttribute) -> Self { ... }
    fn as_array(&self) -> Array { ... }
    fn as_integers(&self) -> Vec<IntegerAttr> { ... }
    fn num_elements(&self) -> isize { ... }
}

Provided Methods§

Source

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

Source

fn new_i32(context: &Context, elements: &[i32]) -> Self

Source

fn new_i64(context: &Context, elements: &[i64]) -> Self

Source

fn from_checked(attr: MlirAttribute) -> Self

Source

fn as_array(&self) -> Array

Source

fn as_integers(&self) -> Vec<IntegerAttr>

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§