ClampToNonNegative

Trait ClampToNonNegative 

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

Source

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.

Implementations on Foreign Types§

Source§

impl ClampToNonNegative for f32

Implementors§