Struct rangemap::RangeSet [−][src]
pub struct RangeSet<T> { /* fields omitted */ }Expand description
A set whose items are stored as (half-open) ranges bounded
inclusively below and exclusively above (start..end).
See RangeMap’s documentation for more details.
Implementations
Returns a reference to the range covering the given key, if any.
Returns true if any range in the set covers the specified value.
Gets an ordered iterator over all ranges, ordered by range.
Insert a range into the set.
If the inserted range either overlaps or is immediately adjacent any existing range, then the ranges will be coalesced into a single contiguous range.
Panics
Panics if range start >= end.
Removes a range from the set, if all or any of it was present.
If the range to be removed partially overlaps any ranges in the set, then those ranges will be contracted to no longer cover the removed range.
Panics
Panics if range start >= end.
Gets an iterator over all the maximally-sized ranges
contained in outer_range that are not covered by
any range stored in the set.
The iterator element type is Range<T>.
NOTE: Calling gaps eagerly finds the first gap,
even if the iterator is never consumed.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one)Extends a collection with exactly one element.
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for RangeSet<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for RangeSet<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more