pub trait RowIndex<I> {
    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> and RowIndex<&str> for all built-in backends

  • Crates implementing custom backends need to provide RowIndex<usize> and RowIndex<&str> impls for their Row type.

Required Methods

Get the numeric index inside the current row for the provided index value

Implementors