pub trait Clock {
// Required method
fn now(&self) -> JsInstant;
}Expand description
Implement a clock that can be used to measure time.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".