[][src]Trait iterable::IterableMap

pub trait IterableMap<K, V>: Iterable<Item = (K, V)> {
    type CCMap;
    fn map_value<U>(self, f: impl Fn(V) -> U) -> Self::CCMap
    where
        Self: Sized,
        Self::CCMap: Producer<(K, U)>
, { ... }
fn map_kv<X, Y>(self, f: impl Fn((K, V)) -> (X, Y)) -> Self::CCMap
    where
        Self: Sized,
        Self::CCMap: Producer<(X, Y)>
, { ... } }

Associated Types

type CCMap

Loading content...

Provided methods

fn map_value<U>(self, f: impl Fn(V) -> U) -> Self::CCMap where
    Self: Sized,
    Self::CCMap: Producer<(K, U)>, 

fn map_kv<X, Y>(self, f: impl Fn((K, V)) -> (X, Y)) -> Self::CCMap where
    Self: Sized,
    Self::CCMap: Producer<(X, Y)>, 

Loading content...

Implementations on Foreign Types

impl<K, V> IterableMap<K, V> for HashMap<K, V>[src]

type CCMap = HashMap<X, Y>

impl<'a, K: 'a, V: 'a> IterableMap<&'a K, &'a V> for &'a HashMap<K, V>[src]

type CCMap = HashMap<X, Y>

impl<K, V> IterableMap<K, V> for BTreeMap<K, V>[src]

type CCMap = BTreeMap<X, Y>

impl<'a, K: 'a, V: 'a> IterableMap<&'a K, &'a V> for &'a BTreeMap<K, V>[src]

type CCMap = BTreeMap<X, Y>

Loading content...

Implementors

Loading content...