pub trait Query {
// Required method
fn key(&self, kind: IndexKind) -> Option<Key>;
}Expand description
A value that can be an index key.
Separate from Field because a lookup takes the borrowed form, the same
way HashMap::get does, so a String field is searched with &str and not
with a String built for the length of one call.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".