pub trait Frequency {
// Required method
fn frequency() -> u32;
}
Expand description
Represents a clock’s frequency in Hz, allowing code to transform
between computer time units and wall clock time. It is typically
an associated type for an implementation of the Time
trait.
Required Methods§
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.