SymmetricMapMap

Trait SymmetricMapMap 

Source
pub trait SymmetricMapMap<K, V>: MutableMap<K, V> {
    type OutputMap<V2: PartialEq + Clone>: SymmetricMapMap<K, V2>;

    // Required method
    fn filter_map_collect<V2: PartialEq + Clone>(
        &self,
        f: &mut impl FnMut(&K, &V) -> Option<V2>,
    ) -> Self::OutputMap<V2>;
}

Required Associated Types§

Required Methods§

Source

fn filter_map_collect<V2: PartialEq + Clone>( &self, f: &mut impl FnMut(&K, &V) -> Option<V2>, ) -> Self::OutputMap<V2>

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: Ord + Clone, V> SymmetricMapMap<K, V> for BTreeMap<K, V>

Source§

type OutputMap<V2: PartialEq + Clone> = BTreeMap<K, V2>

Source§

fn filter_map_collect<V2: PartialEq + Clone>( &self, f: &mut impl FnMut(&K, &V) -> Option<V2>, ) -> Self::OutputMap<V2>

Source§

impl<K: Ord + Clone, V: PartialEq + Clone> SymmetricMapMap<K, V> for Rc<BTreeMap<K, V>>

Source§

type OutputMap<V2: PartialEq + Clone> = Rc<BTreeMap<K, V2>>

Source§

fn filter_map_collect<V2: PartialEq + Clone>( &self, f: &mut impl FnMut(&K, &V) -> Option<V2>, ) -> Self::OutputMap<V2>

Implementors§