SignedRange

Trait SignedRange 

pub trait SignedRange: SealedRange { }
Expand description

Trait supporting regular usize ranges, as well as negative indices.

If a lower or upper bound is negative, then its value is relative to the end of the given collection.
Use the wrapped() utility function to construct such ranges.

Implementors§

§

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