Struct small_sorted_map::SmallSortedMap [−][src]
Implementations
impl<K, V, const SIZE: usize> SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
pub fn new() -> Self
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn get(&self, key: &K) -> Option<&V>
[src]
pub fn get_mut(&mut self, key: &K) -> Option<&mut V>
[src]
pub fn insert(&mut self, key: K, value: V) -> Option<V>
[src]
pub fn remove(&mut self, key: &K) -> Option<V>
[src]
pub fn clear(&mut self)
[src]
pub fn entry(&mut self, key: K) -> Entry<'_, K, V, SIZE>
[src]
pub fn as_slice(&self) -> &[(K, V)]ⓘ
[src]
pub fn as_mut_slice(&mut self) -> &mut [(K, V)]ⓘ
[src]
pub fn values(&self) -> ValuesIter<'_, K, V>ⓘNotable traits for ValuesIter<'a, K, V>
impl<'a, K, V> Iterator for ValuesIter<'a, K, V> where
K: Ord, type Item = &'a V;
[src]
Notable traits for ValuesIter<'a, K, V>
impl<'a, K, V> Iterator for ValuesIter<'a, K, V> where
K: Ord, type Item = &'a V;
pub fn retain<F>(&mut self, f: F) where
F: FnMut(&K, &mut V) -> bool,
[src]
F: FnMut(&K, &mut V) -> bool,
pub fn drain<R>(&mut self, range: R) -> Drain<'_, [(K, V); SIZE]>ⓘ where
R: RangeBounds<usize>,
[src]
R: RangeBounds<usize>,
Trait Implementations
impl<K, V, const SIZE: usize> AsMut<[(K, V)]> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> AsRef<[(K, V)]> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K: Clone, V: Clone, const SIZE: usize> Clone for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
fn clone(&self) -> SmallSortedMap<K, V, SIZE>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Debug, V: Debug, const SIZE: usize> Debug for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> Default for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<'de, K, V, const SIZE: usize> Deserialize<'de> for SmallSortedMap<K, V, SIZE> where
K: Ord + Deserialize<'de>,
V: Deserialize<'de>,
[src]
K: Ord + Deserialize<'de>,
V: Deserialize<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<K: Eq, V: Eq, const SIZE: usize> Eq for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> Extend<(K, V)> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl<S, K, V, const SIZE: usize> From<HashMap<K, V, S>> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> FromIterator<(K, V)> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Self
[src]
impl<K: Hash, V: Hash, const SIZE: usize> Hash for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K, V, const SIZE: usize> Index<&'_ K> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> Index<K> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> IndexMut<&'_ K> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> IndexMut<K> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> IntoIterator for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<[(K, V); SIZE]>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<K: PartialEq, V: PartialEq, const SIZE: usize> PartialEq<SmallSortedMap<K, V, SIZE>> for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
fn eq(&self, other: &SmallSortedMap<K, V, SIZE>) -> bool
[src]
fn ne(&self, other: &SmallSortedMap<K, V, SIZE>) -> bool
[src]
impl<K, V, const SIZE: usize> Serialize for SmallSortedMap<K, V, SIZE> where
K: Ord + Serialize,
V: Serialize,
[src]
K: Ord + Serialize,
V: Serialize,
impl<K, V, const SIZE: usize> StructuralEq for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
impl<K, V, const SIZE: usize> StructuralPartialEq for SmallSortedMap<K, V, SIZE> where
K: Ord,
[src]
K: Ord,
Auto Trait Implementations
impl<K, V, const SIZE: usize> RefUnwindSafe for SmallSortedMap<K, V, SIZE> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, const SIZE: usize> Send for SmallSortedMap<K, V, SIZE> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V, const SIZE: usize> Sync for SmallSortedMap<K, V, SIZE> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V, const SIZE: usize> Unpin for SmallSortedMap<K, V, SIZE> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V, const SIZE: usize> UnwindSafe for SmallSortedMap<K, V, SIZE> 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<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,