pub enum Round {
Nearest,
Up,
Down,
Zero,
}Expand description
Rounding modes for arbitrary-precision operations.
This enum mirrors rug::float::Round for API compatibility.
Variants§
Nearest
Round to nearest, ties away from zero (default).
Up
Round toward positive infinity.
Down
Round toward negative infinity.
Zero
Round toward zero.
Trait Implementations§
impl Copy for Round
impl Eq for Round
impl StructuralPartialEq for Round
Auto Trait Implementations§
impl Freeze for Round
impl RefUnwindSafe for Round
impl Send for Round
impl Sync for Round
impl Unpin for Round
impl UnsafeUnpin for Round
impl UnwindSafe for Round
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