pub struct Division {
pub signed: bool,
pub remainder: bool,
pub exact: bool,
pub width: u32,
pub range: Range,
pub divisor: i128,
}Expand description
One division or remainder by a constant, as far as the rewrite needs to know it.
Fields§
§signed: boolWhether it reads its operands as signed.
remainder: boolWhether the answer is the remainder rather than the quotient.
exact: boolWhether the program promised the division leaves nothing over.
width: u32The width it is done at.
range: RangeWhat the dividend holds.
divisor: i128The divisor, read the way the division reads it.
Trait Implementations§
impl Copy for Division
impl Eq for Division
impl StructuralPartialEq for Division
Auto Trait Implementations§
impl Freeze for Division
impl RefUnwindSafe for Division
impl Send for Division
impl Sync for Division
impl Unpin for Division
impl UnsafeUnpin for Division
impl UnwindSafe for Division
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