Trait RefKv

Source
pub trait RefKv<K, V> {
    // Required method
    fn ref_kv(&self) -> (&K, &V);
}
Expand description

Yields a pair of a references, each of which points to a key and a value.

This trait is used to convert a reference to a pair &(K, V) into a pair of references (&K, &V).

Required Methods§

Source

fn ref_kv(&self) -> (&K, &V)

Yields a pair of a references, each of which points to a key and a value.

Implementations on Foreign Types§

Source§

impl<K, V> RefKv<K, V> for &(K, V)

Source§

fn ref_kv(&self) -> (&K, &V)

Source§

impl<K, V> RefKv<K, V> for (&K, &V)

Source§

fn ref_kv(&self) -> (&K, &V)

Implementors§