Skip to main content

get_range

Function get_range 

Source
pub fn get_range(range: impl RangeBounds<usize>, max: usize) -> Range<usize>
Expand description

Convenience function for the bounds of a range.

Panicking version of try_get_range.