Skip to main content

fs

Macro fs 

Source
macro_rules! fs {
    ($x:expr) => { ... };
}
Expand description

Converts whole femtoseconds (i128) to total attoseconds (i128).

Sugar for Dt::fs_to_attos. Does not build a Dt — only multiplies the unit count by the attoseconds-per-unit constant (saturating).

§Example

use deep_time::{Dt, fs};

assert_eq!(fs!(1), Dt::fs_to_attos(1));