Trait IndexExtractor

Source
pub trait IndexExtractor<V, SK> {
    // Required method
    fn extract(value: &V) -> SK;
}
Expand description

A trait that allows extraction of secondary keys from a value

Required Methods§

Source

fn extract(value: &V) -> SK

Extract a secondary key from a value

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.

Implementors§