pub trait Indexable {
const PRIMARY_KEY: &'static str = "primary_key";
const DEFAULT_SORT: &'static str = Self::PRIMARY_KEY;
// Required method
fn primary_key(&self) -> Vec<u8> ⓘ;
// Provided methods
fn secondary_keys(&self) -> Index { ... }
fn index(&self) -> Index { ... }
}Provided Associated Constants§
const PRIMARY_KEY: &'static str = "primary_key"
const DEFAULT_SORT: &'static str = Self::PRIMARY_KEY
Required Methods§
fn primary_key(&self) -> Vec<u8> ⓘ
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.