pub trait AsRow<'a>: Copy {
const TABLE: usize;
Show 13 methods
// Required methods
fn to_row(&self) -> Row<'a>;
fn from_row(row: Row<'a>) -> Self;
// Provided methods
fn index(&self) -> &'a Index { ... }
fn file(&self) -> &'a File { ... }
fn pos(&self) -> usize { ... }
fn usize(&self, column: usize) -> usize { ... }
fn str(&self, column: usize) -> &'a str { ... }
fn row<R: AsRow<'a>>(&self, column: usize) -> R { ... }
fn decode<T: Decode<'a>>(&self, column: usize) -> T { ... }
fn blob(&self, column: usize) -> Blob<'a> { ... }
fn list<R: AsRow<'a>>(&self, column: usize) -> RowIterator<'a, R> ⓘ { ... }
fn equal_range<L: AsRow<'a>>(
&self,
column: usize,
value: usize,
) -> RowIterator<'a, L> ⓘ { ... }
fn parent_row<P: AsRow<'a>>(&'a self, column: usize) -> P { ... }
}Required Associated Constants§
Required Methods§
Provided Methods§
fn index(&self) -> &'a Index
fn file(&self) -> &'a File
fn pos(&self) -> usize
fn usize(&self, column: usize) -> usize
fn str(&self, column: usize) -> &'a str
fn row<R: AsRow<'a>>(&self, column: usize) -> R
fn decode<T: Decode<'a>>(&self, column: usize) -> T
fn blob(&self, column: usize) -> Blob<'a>
fn list<R: AsRow<'a>>(&self, column: usize) -> RowIterator<'a, R> ⓘ
fn equal_range<L: AsRow<'a>>( &self, column: usize, value: usize, ) -> RowIterator<'a, L> ⓘ
fn parent_row<P: AsRow<'a>>(&'a self, column: usize) -> P
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.