pub trait RowIndex<I> {
// Required method
fn idx(&self, idx: I) -> Option<usize>;
}
Expand description
Representing a way to index into database rows
-
Crates using existing backends should use existing implementations of this traits. Diesel provides
RowIndex<usize>
andRowIndex<&str>
for all built-in backends -
Crates implementing custom backends need to provide
RowIndex<usize>
andRowIndex<&str>
impls for theirRow
type.