indexmap

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

type Entry = Bucket<K, V>

Source§

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

Source§

type Entry = Bucket<K, V>

Source§

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