pub trait Prefixer<'a> {
    // Required method
    fn prefix(&self) -> Vec<Key<'_>>;

    // Provided method
    fn joined_prefix(&self) -> Vec<u8> { ... }
}

Required Methods§

source

fn prefix(&self) -> Vec<Key<'_>>

returns 0 or more namespaces that should be length-prefixed and concatenated for range searches

Provided Methods§

source

fn joined_prefix(&self) -> Vec<u8>

Implementations on Foreign Types§

source§

impl<'a> Prefixer<'a> for &'a str

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for &'a [u8]

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for i8

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for i16

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for i32

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for i64

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for i128

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for u8

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for u16

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for u32

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for u64

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for u128

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for ()

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for String

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for Vec<u8>

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a> Prefixer<'a> for Addr

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a, T> Prefixer<'a> for &'a T
where T: Prefixer<'a>,

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a, T: Prefixer<'a>, U: Prefixer<'a>> Prefixer<'a> for (T, U)

source§

fn prefix(&self) -> Vec<Key<'_>>

source§

impl<'a, T: Prefixer<'a>, U: Prefixer<'a>, V: Prefixer<'a>> Prefixer<'a> for (T, U, V)

source§

fn prefix(&self) -> Vec<Key<'_>>

Implementors§