Skip to main content

Seconds

Trait Seconds 

Source
pub trait Seconds {
    // Required method
    fn seconds(self) -> f64;
}
Expand description

A length of time. f64 means seconds; other types (a theme pace) convert.

Required Methods§

Source

fn seconds(self) -> f64

Duration in seconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Seconds for f64

Source§

fn seconds(self) -> f64

Implementors§