pub struct Sci(pub f64, pub usize);Expand description
Write a float in scientific notation with sig_digits significant digits,
using the FITS E exponent marker.
use xisf_header::{Header, Sci};
let mut header = Header::new();
header.set("FLUX", Sci(1234.5, 3))?;
assert_eq!(header.get_str("FLUX")?, Some("1.23E3"));Tuple Fields§
§0: f64§1: usizeTrait 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