Trait Range
Source pub trait Range {
    // Required method
    fn len(&self) -> usize;
    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description
Trait representing a range of elements.
Returns the remaining length of self.
The returned length need not be the same as the number of items left in the stream.
Returns true if the range does not contain any elements (Range::len() == 0)