pub struct Binary(/* private fields */);
Implementations§
Source§impl Binary
impl Binary
pub fn new_add(lhs: Expr, rhs: Expr) -> Self
pub fn new_mod(lhs: Expr, rhs: Expr) -> Self
pub fn new_mul(lhs: Expr, rhs: Expr) -> Self
pub fn new_ceil_div(lhs: Expr, rhs: Expr) -> Self
pub fn new_floor_div(lhs: Expr, rhs: Expr) -> Self
pub fn new_sub(lhs: Expr, rhs_: Expr) -> Self
pub fn from_checked(expr: MlirAffineExpr, op: BinOp) -> Self
pub fn get(&self) -> &MlirAffineExpr
pub fn get_lhs(&self) -> Expr
pub fn get_mut(&mut self) -> &mut MlirAffineExpr
pub fn get_op(&self) -> BinOp
pub fn get_rhs(&self) -> Expr
Trait Implementations§
Source§impl From<(MlirAffineExpr, BinOp)> for Binary
impl From<(MlirAffineExpr, BinOp)> for Binary
Source§fn from((expr, op): (MlirAffineExpr, BinOp)) -> Self
fn from((expr, op): (MlirAffineExpr, BinOp)) -> Self
Converts to this type from the input type.
impl Copy for Binary
Auto Trait Implementations§
impl Freeze for Binary
impl RefUnwindSafe for Binary
impl !Send for Binary
impl !Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
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