pub trait AttosTraits: Copy + Sized {
// Required methods
fn attos_to_sec(self) -> i128;
fn attos_to_ms(self) -> i128;
fn attos_to_us(self) -> i128;
fn attos_to_ns(self) -> i128;
fn attos_to_ps(self) -> i128;
fn attos_to_fs(self) -> i128;
fn attos_to_sec_f(self) -> f64;
}Expand description
Trait that adds ergonomic conversions from attoseconds values for i64, i128, and f64.
§Examples
use deep_time::AttosTraits;
let attos: i128 = 5;
let seconds = attos.attos_to_sec();Required Methods§
Sourcefn attos_to_sec(self) -> i128
fn attos_to_sec(self) -> i128
attoseconds → seconds (s)
Sourcefn attos_to_ms(self) -> i128
fn attos_to_ms(self) -> i128
attoseconds → milliseconds (ms)
Sourcefn attos_to_us(self) -> i128
fn attos_to_us(self) -> i128
attoseconds → microseconds (us)
Sourcefn attos_to_ns(self) -> i128
fn attos_to_ns(self) -> i128
attoseconds → nanoseconds (ns)
Sourcefn attos_to_ps(self) -> i128
fn attos_to_ps(self) -> i128
attoseconds → picoseconds (ps)
Sourcefn attos_to_fs(self) -> i128
fn attos_to_fs(self) -> i128
attoseconds → femtoseconds (fs)
Sourcefn attos_to_sec_f(self) -> f64
fn attos_to_sec_f(self) -> f64
attoseconds → float seconds (s)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".