Trait Clamp01

Source
pub trait Clamp01:
    Clamp
    + Zero
    + One { }
Expand description

A scalar or vector that can be constrained to be between 0 and 1 (inclusive).

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<T> Clamp01 for T
where T: Clamp + Zero + One,