Trait indexmap::Entries

source ·
pub(crate) trait Entries {
    type Entry;

    // Required methods
    fn into_entries(self) -> Vec<Self::Entry>;
    fn as_entries(&self) -> &[Self::Entry];
    fn as_entries_mut(&mut self) -> &mut [Self::Entry];
    fn with_entries<F>(&mut self, f: F)
       where F: FnOnce(&mut [Self::Entry]);
}

Required Associated Types§

Required Methods§

source

fn into_entries(self) -> Vec<Self::Entry>

source

fn as_entries(&self) -> &[Self::Entry]

source

fn as_entries_mut(&mut self) -> &mut [Self::Entry]

source

fn with_entries<F>(&mut self, f: F)
where F: FnOnce(&mut [Self::Entry]),

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<K, V> Entries for IndexMapCore<K, V>

§

type Entry = Bucket<K, V>

source§

impl<K, V, S> Entries for IndexMap<K, V, S>

§

type Entry = Bucket<K, V>

source§

impl<T, S> Entries for IndexSet<T, S>

§

type Entry = Bucket<T, ()>