Clamped floating-point types.
Provides wrappers around floating-point values clamped to the range [0,1].
Example
Basic usage:
use Clamp32; // The `Clamp64` type is also available
Usage without the standard library
For usage without the standard library you need exclude the std
feature. This
can be done by editing Cargo.toml
:
[]
= "0.1"
= false
or
[]
= { = "0.1", = false }