Struct dashu_float::round::mode::Away
source · pub struct Away;Expand description
Round away from 0
Trait Implementations
sourceimpl Round for Away
impl Round for Away
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 Away
Auto Trait Implementations
impl RefUnwindSafe for Away
impl Send for Away
impl Sync for Away
impl Unpin for Away
impl UnwindSafe for Away
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