pub enum RoundMode {
Round,
Truncate,
}
Expand description
Enumeration for how to round floats with precision control.
Variants
Round
Round to the nearest float string with the given number of significant digits.
Truncate
Truncate the float string with the given number of significant digits.
Implementations
Trait Implementations
impl Copy for RoundMode
impl Eq for RoundMode
impl StructuralEq 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more