tempa 0.1.12

A no_std temporal system for animation and simulation, providing time, duration, time ranges, frame rates, and deterministic frame-index stepping.
Documentation
1
2
3
4
5
6
7
use crate::Duration;

/// Trait for values that expose a [Duration].
pub trait HasDuration<T> {
    /// Returns this value's [Duration].
    fn duration(&self) -> Duration<T>;
}