Struct dashu_float::round::mode::Zero
source · pub struct Zero;Expand description
Round toward 0 (default mode for binary float)
Trait Implementations
sourceimpl Round for Zero
impl Round for Zero
sourcefn round_low_part<F: FnOnce() -> Ordering>(
integer: &IBig,
low_sign: Sign,
_low_half_test: F
) -> Rounding
fn round_low_part<F: FnOnce() -> Ordering>(
integer: &IBig,
low_sign: Sign,
_low_half_test: F
) -> Rounding
Calculate the rounding of the number (integer + rem), assuming rem != 0 and |rem| < 1.
low_half_test should tell |rem|.cmp(0.5) Read moreimpl Copy for Zero
Auto Trait Implementations
impl RefUnwindSafe for Zero
impl Send for Zero
impl Sync for Zero
impl Unpin for Zero
impl UnwindSafe for Zero
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more