pub trait QueryIdxwhere
Self: Display,{
// Required method
fn idx(&self, row: &Row) -> Option<usize>;
}Expand description
A type that can address a column within a Row, either by its zero-based
position (usize) or by name (&str).
Implement this for a custom column identifier (for example a generated
column-name enum) to index rows with it via Row::get/Row::try_get.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".