Docs.rs
mindtree_utils-0.2.0
mindtree_utils 0.2.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
mitchmindtree
Dependencies
time *
rand *
num *
rustc-serialize *
Versions
Go to latest version
Platform
i686-apple-darwin
i686-pc-windows-gnu
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-gnu
x86_64-pc-windows-msvc
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.