[−][src]Struct gf::support::iv::IvSet
Ordered interval set.
Intervals in the set are eagerly merged: this collection guarantees that there will be no adjacent intervals in the set.
Implementations
impl<T: Clone + Integer> IvSet<T>
[src]
pub fn new() -> Self
[src]
Create an empty interval set.
pub fn is_empty(&self) -> bool
[src]
Return whether the set is empty.
pub fn len(&self) -> usize
[src]
Return the number of intervals in the map.
pub fn unite_iv(&mut self, iv: Iv<T>)
[src]
Unite the set with iv
.
Trait Implementations
impl<T: Clone> Clone for IvSet<T>
[src]
impl<T: Clone + Integer> Default for IvSet<T>
[src]
impl<T: Eq> Eq for IvSet<T>
[src]
impl<T: PartialEq> PartialEq<IvSet<T>> for IvSet<T>
[src]
impl<T> StructuralEq for IvSet<T>
[src]
impl<T> StructuralPartialEq for IvSet<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for IvSet<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for IvSet<T> where
T: Send,
T: Send,
impl<T> Sync for IvSet<T> where
T: Sync,
T: Sync,
impl<T> Unpin for IvSet<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for IvSet<T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,