pub struct RoundingMode(/* private fields */);
Implementations§
Source§impl RoundingMode
impl RoundingMode
pub fn new(context: &Context, k: RoundingModeKind) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_kind(&self) -> RoundingModeKind
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl Clone for RoundingMode
impl Clone for RoundingMode
Source§fn clone(&self) -> RoundingMode
fn clone(&self) -> RoundingMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<MlirAttribute> for RoundingMode
impl From<MlirAttribute> for RoundingMode
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for RoundingMode
impl IAttribute for RoundingMode
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
Source§impl IAttributeNamed for RoundingMode
impl IAttributeNamed for RoundingMode
Source§impl NamedInteger for RoundingMode
impl NamedInteger for RoundingMode
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
Auto Trait Implementations§
impl Freeze for RoundingMode
impl RefUnwindSafe for RoundingMode
impl !Send for RoundingMode
impl !Sync for RoundingMode
impl Unpin for RoundingMode
impl UnwindSafe for RoundingMode
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