pub struct Sci(pub f64, pub u8);Expand description
Write a float in scientific notation with N significant digits (uppercase E).
§Examples
let mut h = Header::new();
h.set("BZERO", Sci(0.000123, 3)).unwrap();
assert_eq!(h.get::<String>("BZERO").unwrap().as_deref(), Some("1.23E-4"));Tuple Fields§
§0: f64§1: u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sci
impl RefUnwindSafe for Sci
impl Send for Sci
impl Sync for Sci
impl Unpin for Sci
impl UnsafeUnpin for Sci
impl UnwindSafe for Sci
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