Trait sqlx_core::column::ColumnIndex
source · pub trait ColumnIndex<T: ?Sized>: Debug {
// Required method
fn index(&self, container: &T) -> Result<usize, Error>;
}
Expand description
Required Methods§
sourcefn index(&self, container: &T) -> Result<usize, Error>
fn index(&self, container: &T) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
.