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 String

source§

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

source§

impl MapKey for Vec<u8>

source§

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

source§

impl MapKey for Address

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>