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 StructuralPartialEq for RoundMode
Auto Trait Implementations§
impl Freeze for RoundMode
impl RefUnwindSafe for RoundMode
impl Send for RoundMode
impl Sync for RoundMode
impl Unpin for RoundMode
impl UnwindSafe for RoundMode
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