pub trait FrameRateConversion<T> {
// Required methods
fn to_frame(self, frame_rate: T) -> i64;
fn from_frame(frame: i64, frame_rate: T) -> Self;
}Expand description
Conversion to/from specified frame rates.
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.
Implementors§
impl FrameRateConversion<NonZero<u32>> for Tick
impl FrameRateConversion<StrictlyPositiveFinite> for Tick
Available on crate feature
float_frame_rate only.impl FrameRateConversion<StrictlyPositiveFinite<f32>> for Tick
Available on crate feature
float_frame_rate only.