pub trait TweenValue:
Copy
+ Debug
+ Add<Output = Self>
+ Sub<Output = Self> {
// Required method
fn scale(self, scale: f32) -> Self;
}Expand description
A TweenValue is a value which can be Tweened. The library fundamentally outputs
TweenValue eventually.
If you want to implement your own values to be tweened (for example, your favorite color lib), then you’ll need to implement this trait.
For now, we require Copy, but can reduce this to a Clone implementation. Please file an
issue if that is needed for your workflow.
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.