Docs.rs
mindtree_utils-0.4.0
mindtree_utils 0.4.0
Docs.rs crate page
MIT
Links
Homepage
Repository
Crates.io
Source
Owners
mitchmindtree
Dependencies
num ^0.1.27
time ^0.1.32
rand ^0.3.11
Versions
Platform
i686-apple-darwin
i686-pc-windows-gnu
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-gnu
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
utils
::
math
Function
utils
::
math
::
clamp
[
−
]
[src]
pub fn clamp<T:
PartialOrd
>(val: T, min: T, max: T) -> T
Clamp a value to a range.