[−][src]Trait sqlx_core::row::ColumnIndex
A type that can be used to index into a Row
.
The get
and try_get
methods of Row
accept any type that implements ColumnIndex
.
This trait is implemented for strings which are used to look up a column by name, and for
usize
which is used as a positional index into the row.
This trait is sealed and cannot be implemented for types outside of SQLx.
Required methods
fn index(&self, row: &R) -> Result<usize>
Returns a valid positional index into the row, ColumnIndexOutOfBounds
, or,
ColumnNotFound
.
Implementations on Foreign Types
impl<'c, '_, R, I: ?Sized> ColumnIndex<'c, R> for &'_ I where
R: Row<'c>,
I: ColumnIndex<'c, R>,
[src]
Loading content...
R: Row<'c>,
I: ColumnIndex<'c, R>,