KeyValue

Trait KeyValue 

Source
pub trait KeyValue<K, V> {
    // Required methods
    fn split(self) -> (K, V);
    fn unsplit(k: K, v: V) -> Self;
}

Required Methods§

Source

fn split(self) -> (K, V)

Source

fn unsplit(k: K, v: V) -> Self

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, V> KeyValue<K, V> for (K, V)

Source§

fn split(self) -> (K, V)

Source§

fn unsplit(k: K, v: V) -> Self

Implementors§