Struct small_sorted_map::SmallSortedMap[][src]

pub struct SmallSortedMap<K, V, const SIZE: usize> where
    K: Ord
{ /* fields omitted */ }

Implementations

impl<K, V, const SIZE: usize> SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

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)]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn as_mut_slice(&mut self) -> &mut [(K, V)]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[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]

pub fn retain<F>(&mut self, f: F) where
    F: FnMut(&K, &mut V) -> bool
[src]

pub fn drain<R>(&mut self, range: R) -> Drain<'_, [(K, V); SIZE]>

Notable traits for Drain<'a, T>

impl<'a, T> Iterator for Drain<'a, T> where
    T: 'a + Array
type Item = <T as Array>::Item;
where
    R: RangeBounds<usize>, 
[src]

Trait Implementations

impl<K, V, const SIZE: usize> AsMut<[(K, V)]> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> AsRef<[(K, V)]> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K: Clone, V: Clone, const SIZE: usize> Clone for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K: Debug, V: Debug, const SIZE: usize> Debug for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> Default for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<'de, K, V, const SIZE: usize> Deserialize<'de> for SmallSortedMap<K, V, SIZE> where
    K: Ord + Deserialize<'de>,
    V: Deserialize<'de>, 
[src]

impl<K: Eq, V: Eq, const SIZE: usize> Eq for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> Extend<(K, V)> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<S, K, V, const SIZE: usize> From<HashMap<K, V, S>> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> FromIterator<(K, V)> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K: Hash, V: Hash, const SIZE: usize> Hash for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> Index<&'_ K> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

type Output = V

The returned type after indexing.

impl<K, V, const SIZE: usize> Index<K> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

type Output = V

The returned type after indexing.

impl<K, V, const SIZE: usize> IndexMut<&'_ K> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> IndexMut<K> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> IntoIterator for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

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?

impl<K: PartialEq, V: PartialEq, const SIZE: usize> PartialEq<SmallSortedMap<K, V, SIZE>> for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> Serialize for SmallSortedMap<K, V, SIZE> where
    K: Ord + Serialize,
    V: Serialize
[src]

impl<K, V, const SIZE: usize> StructuralEq for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

impl<K, V, const SIZE: usize> StructuralPartialEq for SmallSortedMap<K, V, SIZE> where
    K: Ord
[src]

Auto Trait Implementations

impl<K, V, const SIZE: usize> RefUnwindSafe for SmallSortedMap<K, V, SIZE> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V, const SIZE: usize> Send for SmallSortedMap<K, V, SIZE> where
    K: Send,
    V: Send

impl<K, V, const SIZE: usize> Sync for SmallSortedMap<K, V, SIZE> where
    K: Sync,
    V: Sync

impl<K, V, const SIZE: usize> Unpin for SmallSortedMap<K, V, SIZE> where
    K: Unpin,
    V: Unpin

impl<K, V, const SIZE: usize> UnwindSafe for SmallSortedMap<K, V, SIZE> 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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.