Trait rs3cache_utils::rangeclamp::RangeClamp
source · pub trait RangeClamp {
// Provided method
fn clamp(
self,
start_bound: Self::Item,
end_bound: Self::Item
) -> Range<Self::Item>
where Self::Item: Debug + Ord + Copy + Add,
Self: Sized + Iterator + RangeBounds<<Self as Iterator>::Item> { ... }
}
Expand description
Provides the clamp()
method for Range
, clamping it to a given interval.