pub struct ArithValue(/* private fields */);
Implementations§
Source§impl ArithValue
impl ArithValue
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl Clone for ArithValue
impl Clone for ArithValue
Source§fn clone(&self) -> ArithValue
fn clone(&self) -> ArithValue
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 ArithValue
impl From<MlirAttribute> for ArithValue
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for ArithValue
impl IAttribute for ArithValue
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 ArithValue
impl IAttributeNamed for ArithValue
Source§impl NamedFloatOrIndexOrInteger for ArithValue
impl NamedFloatOrIndexOrInteger for ArithValue
fn new_float(attr: &FloatAttr) -> Self
fn new_index(attr: &IndexAttr) -> Self
fn new_integer(attr: &IntegerAttr) -> Self
fn from_checked(attr: MlirAttribute) -> Self
fn as_float(&self) -> Option<FloatAttr>
fn as_index(&self) -> Option<IndexAttr>
fn as_integer(&self) -> Option<IntegerAttr>
fn is_float(&self) -> bool
fn is_index(&self) -> bool
fn is_integer(&self) -> bool
Auto Trait Implementations§
impl Freeze for ArithValue
impl RefUnwindSafe for ArithValue
impl !Send for ArithValue
impl !Sync for ArithValue
impl Unpin for ArithValue
impl UnwindSafe for ArithValue
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