Function orx_pinned_vec::utils::slice::vec_range_limits
source · pub fn vec_range_limits<R: RangeBounds<usize>>(
range: &R,
vec_len: Option<usize>,
) -> [usize; 2]
Expand description
Returns the inclusive being and exclusive end of the given range
.
The range is bounded by the vec_len
if it is known and provided.
§Panics
Panics if end bound is Unbounded while vec_len is None.