pub struct Integer(/* private fields */);
Implementations§
Source§impl Integer
impl Integer
pub fn new(t: &IntegerType, value: i64) -> Self
pub fn new_index(context: &Context, value: i64) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_int(&self) -> i64
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_sint(&self) -> i64
pub fn get_type_integer(&self) -> IntegerType
pub fn get_type_id() -> TypeID
pub fn get_uint(&self) -> u64
pub fn has_index_width(&self) -> bool
pub const fn index_width() -> usize
Trait Implementations§
Source§impl From<MlirAttribute> for Integer
impl From<MlirAttribute> for Integer
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Integer
impl IAttribute for Integer
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn as_attribute(&self) -> Attribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Integer
impl RefUnwindSafe for Integer
impl !Send for Integer
impl !Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more