pub struct Constant(/* private fields */);
Implementations§
Source§impl Constant
impl Constant
pub fn new(context: &Context, constant: i64) -> Self
pub fn from_checked(expr: MlirAffineExpr) -> Self
pub fn get(&self) -> &MlirAffineExpr
pub fn get_mut(&mut self) -> &mut MlirAffineExpr
pub fn get_value(&self) -> i64
Trait Implementations§
Source§impl From<MlirAffineExpr> for Constant
impl From<MlirAffineExpr> for Constant
Source§fn from(expr: MlirAffineExpr) -> Self
fn from(expr: MlirAffineExpr) -> Self
Converts to this type from the input type.
impl Copy for Constant
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