FrameRateConversion

Trait FrameRateConversion 

Source
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§

Source

fn to_frame(self, frame_rate: T) -> i64

Source

fn from_frame(frame: i64, frame_rate: T) -> Self

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§

Source§

impl FrameRateConversion<NonZero<u32>> for Tick

Source§

impl FrameRateConversion<StrictlyPositiveFinite> for Tick

Available on crate feature float_frame_rate only.
Source§

impl FrameRateConversion<StrictlyPositiveFinite<f32>> for Tick

Available on crate feature float_frame_rate only.