Trait iterable::IterableMap[][src]

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

Provided methods

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

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

Implementations on Foreign Types

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>

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>

Implementors

impl<K, V, I, F> IterableMap<K, V> for LazyFilter<I, F> where
    I: IterableMap<K, V>,
    F: Fn(&(K, V)) -> bool
[src]

type CCMap = I::CCMap

impl<K, V, I, F> IterableMap<K, V> for LazySkipWhile<I, F> where
    I: IterableMap<K, V>,
    F: Fn(&(K, V)) -> bool
[src]

type CCMap = I::CCMap