pub trait ClampToNonNegative {
// Required method
fn clamp_to_non_negative(self) -> Self;
}Expand description
A trait to clamp a negative value to another.
Required Methods§
Sourcefn clamp_to_non_negative(self) -> Self
fn clamp_to_non_negative(self) -> Self
Clamps the value to be non-negative after an animation.
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.