pub trait SortKey: Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static {
    // Required method
    fn sort_key(&self) -> &[u8] ;
}
Expand description

Trait for field used to sort data

Required Methods§

source

fn sort_key(&self) -> &[u8]

Get the key used to sort

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SortKey for String

source§

fn sort_key(&self) -> &[u8]

source§

impl SortKey for FixedBytes32

source§

fn sort_key(&self) -> &[u8]

Implementors§