pub struct Constant(/* private fields */);
Implementations§
Source§impl Constant
impl Constant
pub fn new_float(attr: &FloatAttr, loc: &Location) -> Self
pub fn new_index(attr: &IndexAttr, loc: &Location) -> Self
pub fn new_integer(attr: &IntegerAttr, loc: &Location) -> Self
pub fn get(&self) -> &MlirOperation
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_float_value(&self) -> Option<FloatAttr>
pub fn get_integer_value(&self) -> Option<IntegerAttr>
pub fn get_value(&self) -> ArithValue
pub fn is_float(&self) -> bool
pub fn is_index(&self) -> bool
pub fn is_integer(&self) -> bool
Trait Implementations§
Source§impl From<MlirOperation> for Constant
impl From<MlirOperation> for Constant
Source§fn from(op: MlirOperation) -> Self
fn from(op: MlirOperation) -> Self
Converts to this type from the input type.
Source§impl IOperation for Constant
impl IOperation for Constant
fn get(&self) -> &MlirOperation
fn get_dialect(&self) -> Dialect
fn get_effects(&self) -> MemoryEffectList
fn get_interfaces(&self) -> &'static [Interface]
fn get_mut(&mut self) -> &mut MlirOperation
fn get_name(&self) -> &'static str
fn get_op(&self) -> OpRef
fn get_traits(&self) -> &'static [Trait]
fn as_operation(&self) -> Operation ⓘ
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl !Send for Constant
impl !Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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