pub enum RoundMode {
Ceil,
Nearest,
Floor,
}
Expand description
Mode of rounding.
Variants
Ceil
Rounds up. The result is equal or greater than a mathematical result.
Nearest
Rounds to nearest representable value. The result is nearest to a mathematical result.
Floor
Rounds down. The result is equal or less than a mathematical result.
Trait Implementations
impl Copy for RoundMode
impl StructuralPartialEq for RoundMode
Auto Trait Implementations
impl RefUnwindSafe for RoundMode
impl Send for RoundMode
impl Sync for RoundMode
impl Unpin for RoundMode
impl UnwindSafe for RoundMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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