Function dumbmath::range::range_clamp
[−]
[src]
pub fn range_clamp<T: Copy + PartialOrd + Sub<Output=T>>(a: InclusiveRange<T>, b: InclusiveRange<T>) -> Option<InclusiveRange<T>>
Create range covering the overlap between two ranges, or None if there is no overlap.