pub trait TweenTime:
Copy
+ PartialEq
+ PartialOrd
+ Debug
+ Add<Output = Self>
+ AddAssign
+ Rem<Output = Self>
+ Sub<Output = Self> {
const ZERO: Self;
// Required method
fn to_f32(self) -> f32;
}
Expand description
A TweenTime
is a representation of Time. The two most common will be f32
/f64
for
seconds and u32
/u64
/usize
for frames.
If you want to implement your own time for duration, then you’ll need to implement this trait.
Required Associated Constants§
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.