mlir::attributes::specialized

Trait NamedInteger

Source
pub trait NamedInteger:
    From<MlirAttribute>
    + IAttributeNamed
    + Sized {
    // Provided methods
    fn new(context: &Context, n: i64, width: usize) -> Self { ... }
    fn new_index(context: &Context, n: i64) -> Self { ... }
    fn new_signed(context: &Context, n: i64, width: usize) -> Self { ... }
    fn new_signless(context: &Context, n: i64, width: usize) -> Self { ... }
    fn new_unsigned(context: &Context, n: i64, width: usize) -> Self { ... }
    fn from_checked(attr: MlirAttribute) -> Self { ... }
    fn as_integer(&self) -> IntegerAttr { ... }
    fn get_value(&self) -> i64 { ... }
}

Provided Methods§

Source

fn new(context: &Context, n: i64, width: usize) -> Self

Source

fn new_index(context: &Context, n: i64) -> Self

Source

fn new_signed(context: &Context, n: i64, width: usize) -> Self

Source

fn new_signless(context: &Context, n: i64, width: usize) -> Self

Source

fn new_unsigned(context: &Context, n: i64, width: usize) -> Self

Source

fn from_checked(attr: MlirAttribute) -> Self

Source

fn as_integer(&self) -> IntegerAttr

Source

fn get_value(&self) -> i64

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§