AsSlice

Trait AsSlice 

Source
pub trait AsSlice {
    type Key: Ord;
    type Value;

    // Required method
    fn as_slice<'a>(&'a self) -> &'a [(Self::Key, Self::Value)];
}

Required Associated Types§

Required Methods§

Source

fn as_slice<'a>(&'a self) -> &'a [(Self::Key, Self::Value)]

Implementations on Foreign Types§

Source§

impl<K: Ord, V> AsSlice for &[(K, V)]

Source§

type Key = K

Source§

type Value = V

Source§

fn as_slice(&self) -> &[(Self::Key, Self::Value)]

Source§

impl<K: Ord, V> AsSlice for &mut [(K, V)]

Source§

type Key = K

Source§

type Value = V

Source§

fn as_slice(&self) -> &[(Self::Key, Self::Value)]

Source§

impl<K: Ord, V> AsSlice for Vec<(K, V)>

Source§

type Key = K

Source§

type Value = V

Source§

fn as_slice(&self) -> &[(Self::Key, Self::Value)]

Source§

impl<K: Ord, V, const LEN: usize> AsSlice for [(K, V); LEN]

Source§

type Key = K

Source§

type Value = V

Source§

fn as_slice(&self) -> &[(Self::Key, Self::Value)]

Implementors§