[][src]Struct gf::support::iv::IvSet

pub struct IvSet<T> { /* fields omitted */ }

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

impl<T> Send for IvSet<T> where
    T: Send

impl<T> Sync for IvSet<T> where
    T: Sync

impl<T> Unpin for IvSet<T> where
    T: Unpin

impl<T> UnwindSafe for IvSet<T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.