Function na::partial_clamp [−][src]
pub fn partial_clamp<T>(value: &'a T, min: &'a T, max: &'a T) -> Option<&'a T> where
T: PartialOrd<T>,
Clamp value
between min
and max
. Returns None
if value
is not comparable to
min
or max
.