pub trait Indexable: Hashable {
const PRIMARY_KEY: &'static str = "primary_key";
const DEFAULT_SORT: &'static str = Self::PRIMARY_KEY;
// Provided methods
fn primary_key(&self) -> Vec<u8> ⓘ { ... }
fn secondary_keys(&self) -> Index { ... }
}
Provided Associated Constants§
const PRIMARY_KEY: &'static str = "primary_key"
const DEFAULT_SORT: &'static str = Self::PRIMARY_KEY
Provided Methods§
fn primary_key(&self) -> Vec<u8> ⓘ
fn secondary_keys(&self) -> Index
Object Safety§
This trait is not object safe.