Docs.rs
iced-cube-0.0.21
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
clamp
iced_
cube
0.0.21
In iced_
cube::
feedback::
progress
iced_cube
::
feedback
::
progress
Function
clamp
Copy item path
Source
pub fn clamp(value:
f32
) ->
f32
Available on
crate feature
progress
only.
Expand description
Clamps a value into 0.0..=1.0. NaN becomes 0.0.