Trait TimeUnits

Source
pub trait TimeUnits {
    // Required methods
    fn seconds(seconds: i64) -> Self;
    fn num_seconds(&self) -> i64;
}

Required Methods§

Source

fn seconds(seconds: i64) -> Self

Source

fn num_seconds(&self) -> i64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TimeUnits for Duration

Source§

fn seconds(seconds: i64) -> Self

Source§

fn num_seconds(&self) -> i64

Implementors§

Source§

impl TimeUnits for countrs::types::Duration