pub struct IntervalSet { /* private fields */ }Expand description
A set of non-overlapping integer intervals.
Implementations§
Source§impl IntervalSet
impl IntervalSet
Sourcepub fn num_intervals(&self) -> usize
pub fn num_intervals(&self) -> usize
Returns the number of intervals.
Sourcepub fn cardinality(&self) -> i64
pub fn cardinality(&self) -> i64
Returns the total count of integers covered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntervalSet
impl RefUnwindSafe for IntervalSet
impl Send for IntervalSet
impl Sync for IntervalSet
impl Unpin for IntervalSet
impl UnsafeUnpin for IntervalSet
impl UnwindSafe for IntervalSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more