pub struct PrettyPrintFloat(pub f64);
Expand description
f64
wrapper to use with formatting code.
See the crate-level doc for details.
use float_pretty_print::PrettyPrintFloat;
assert_eq!(format!("{:4.4}", PrettyPrintFloat(0.00005)), "5e-5");
Tuple Fields§
§0: f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrettyPrintFloat
impl RefUnwindSafe for PrettyPrintFloat
impl Send for PrettyPrintFloat
impl Sync for PrettyPrintFloat
impl Unpin for PrettyPrintFloat
impl UnwindSafe for PrettyPrintFloat
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