pub struct FloatPrettyPrinter {
pub allow_scientific: bool,
pub min_decimal: i32,
pub max_decimal: i32,
}
Expand description
Handles printing of floating point numbers
Fields
allow_scientific: bool
Whether scientific notation is allowed
min_decimal: i32
Minimum allowed number of decimal digits
max_decimal: i32
Maximum allowed number of decimal digits
Implementations
Auto Trait Implementations
impl RefUnwindSafe for FloatPrettyPrinter
impl Send for FloatPrettyPrinter
impl Sync for FloatPrettyPrinter
impl Unpin for FloatPrettyPrinter
impl UnwindSafe for FloatPrettyPrinter
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