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§
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
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.