[−][src]Struct gf::support::iv::IvMap
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]
K: Clone + Integer,
V: IvData<K>,
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]
K: Clone + Integer,
V: IvData<K>,
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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for IvMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for IvMap<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for IvMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for IvMap<K, V> where
K: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
V: 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>,