Function core::slice::index::into_range

source ·
fn into_range(
    len: usize,
    (start, end): (Bound<usize>, Bound<usize>)
) -> Option<Range<usize>>
Expand description

Convert pair of ops::Bounds into ops::Range. Returns None on overflowing indices.