Struct best::BestMapNonEmpty
[−]
[src]
pub struct BestMapNonEmpty<K: PartialOrd, V> { /* fields omitted */ }
Methods
impl<K: PartialOrd, V> BestMapNonEmpty<K, V>
[src]
pub fn new(key: K, value: V) -> Self
[src]
pub fn insert_gt(&mut self, key: K, value: V)
[src]
pub fn insert_ge(&mut self, key: K, value: V)
[src]
pub fn insert_lt(&mut self, key: K, value: V)
[src]
pub fn insert_le(&mut self, key: K, value: V)
[src]
pub fn get(&self) -> (&K, &V)
[src]
pub fn key(&self) -> &K
[src]
pub fn value(&self) -> &V
[src]
pub fn into(self) -> (K, V)
[src]
pub fn into_key(self) -> K
[src]
pub fn into_value(self) -> V
[src]
pub fn len(&self) -> usize
[src]
Trait Implementations
impl<K: Debug + PartialOrd, V: Debug> Debug for BestMapNonEmpty<K, V>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<K: Clone + PartialOrd, V: Clone> Clone for BestMapNonEmpty<K, V>
[src]
fn clone(&self) -> BestMapNonEmpty<K, V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K: Copy + PartialOrd, V: Copy> Copy for BestMapNonEmpty<K, V>
[src]
Auto Trait Implementations
impl<K, V> Send for BestMapNonEmpty<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for BestMapNonEmpty<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,