Trait MapKey

Source
pub trait MapKey {
    // Required method
    fn key(&self) -> Vec<&[u8]>;
}
Expand description

A trait for types which can be used as map keys.

Required Methods§

Source

fn key(&self) -> Vec<&[u8]>

Return the composite key.

Implementations on Foreign Types§

Source§

impl MapKey for &str

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl MapKey for &[u8]

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl MapKey for Address

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl MapKey for String

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl MapKey for Vec<u8>

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl<T, U> MapKey for (T, U)
where T: MapKey, U: MapKey,

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl<T, U, V> MapKey for (T, U, V)
where T: MapKey, U: MapKey, V: MapKey,

Source§

fn key(&self) -> Vec<&[u8]>

Source§

impl<const N: usize> MapKey for [u8; N]

Source§

fn key(&self) -> Vec<&[u8]>

Implementors§

Source§

impl<I: Integer> MapKey for Int<I>