pub struct Integer(/* private fields */);
Implementations§
Source§impl Integer
impl Integer
pub fn new_bool(context: &Context) -> Self
pub fn new_bool_unsigned(context: &Context) -> Self
pub fn new_signed(context: &Context, width: usize) -> Self
pub fn new_signless(context: &Context, width: usize) -> Self
pub fn new_unsigned(context: &Context, width: usize) -> Self
pub fn from_type(t: &Type) -> Self
pub fn get(&self) -> &MlirType
pub fn get_mut(&mut self) -> &mut MlirType
pub fn get_width(&self) -> usize
pub fn get_type_id() -> TypeID
pub fn is_bool(&self) -> bool
pub fn is_signed(&self) -> bool
pub fn is_signless(&self) -> bool
pub fn is_unsigned(&self) -> bool
Trait Implementations§
Source§impl IsPromotableTo<Integer> for Integer
impl IsPromotableTo<Integer> for Integer
fn is_promotable_to(&self, other: &Self) -> bool
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