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 Freeze for FloatPrettyPrinter
impl RefUnwindSafe for FloatPrettyPrinter
impl Send for FloatPrettyPrinter
impl Sync for FloatPrettyPrinter
impl Unpin for FloatPrettyPrinter
impl UnwindSafe for FloatPrettyPrinter
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes