Trait ops::UsizeBounds

source ·
pub trait UsizeBounds {
    // Required methods
    fn to_range(&self, len: usize) -> Range<usize>;
    fn checked_to_range(&self, len: usize) -> Result<Range<usize>, UsizeOob>;
}

Required Methods§

Implementors§

source§

impl<R> UsizeBounds for R
where R: RangeBounds<usize>,