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

pub struct IvMap<K, V> { /* fields omitted */ }

Ordered interval map.

Intervals in the map are eagerly merged: this collection guarantees that there will be no adjacent intervals in the map keys.

Implementations

impl<K, V> IvMap<K, V> where
    K: Clone + Integer,
    V: IvData<K>, 
[src]

pub fn new() -> Self[src]

Create an empty interval map.

pub fn is_empty(&self) -> bool[src]

Return whether the map is empty.

pub fn len(&self) -> usize[src]

Return the number of intervals in the map.

pub fn unite_iv(&mut self, iv: Iv<K>, iv_data: V)[src]

Unite the map with iv and its associated iv_data.

Trait Implementations

impl<K: Clone, V: Clone> Clone for IvMap<K, V>[src]

impl<K, V> Default for IvMap<K, V> where
    K: Clone + Integer,
    V: IvData<K>, 
[src]

impl<K: Eq, V: Eq> Eq for IvMap<K, V>[src]

impl<K: PartialEq, V: PartialEq> PartialEq<IvMap<K, V>> for IvMap<K, V>[src]

impl<K, V> StructuralEq for IvMap<K, V>[src]

impl<K, V> StructuralPartialEq for IvMap<K, V>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for IvMap<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for IvMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for IvMap<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for IvMap<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for IvMap<K, V> where
    K: RefUnwindSafe + UnwindSafe,
    V: 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.