Enum lexical_write_float::RoundMode
source · 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§
source§impl PartialEq for RoundMode
impl PartialEq for RoundMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)