KeyedEq

Trait KeyedEq 

Source
pub trait KeyedEq {
    type Key;

    // Required method
    fn different_keys<'l>(
        &'l self,
        other: &'l Self,
    ) -> SmallVec<[&'l Self::Key; 2]>;
}

Required Associated Types§

Required Methods§

Source

fn different_keys<'l>(&'l self, other: &'l Self) -> SmallVec<[&'l Self::Key; 2]>

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.

Implementations on Foreign Types§

Source§

impl<K: Eq + Hash, H: BuildHasher> KeyedEq for HashSet<K, H>

Source§

type Key = K

Source§

fn different_keys<'l>(&'l self, other: &'l Self) -> SmallVec<[&'l Self::Key; 2]>

Source§

impl<K: Eq + Hash, H: BuildHasher> KeyedEq for IndexSet<K, H>

Source§

type Key = K

Source§

fn different_keys<'l>(&'l self, other: &'l Self) -> SmallVec<[&'l Self::Key; 2]>

Source§

impl<K: Eq + Hash, V: PartialEq, H: BuildHasher> KeyedEq for HashMap<K, V, H>

Source§

type Key = K

Source§

fn different_keys<'l>(&'l self, other: &'l Self) -> SmallVec<[&'l Self::Key; 2]>

Source§

impl<K: Eq + Hash, V: PartialEq, H: BuildHasher> KeyedEq for IndexMap<K, V, H>

Source§

type Key = K

Source§

fn different_keys<'l>(&'l self, other: &'l Self) -> SmallVec<[&'l Self::Key; 2]>

Implementors§