rustmax::extras

Trait RangeExt

Source
pub trait RangeExt {
    // Required methods
    fn from_start_len(start: usize, len: usize) -> Option<Range<usize>>;
    fn subrange(&self, sub: Range<usize>) -> Option<Range<usize>>;
    fn checked_sub(&self, other: usize) -> Option<Range<usize>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§