pub trait ColumnReader {
Show 15 methods
// Required methods
fn remaining(&self) -> usize;
fn is_null_at(&self, ahead: usize) -> Result<bool>;
fn skip(&mut self) -> Result<()>;
fn bool(&mut self) -> Result<bool>;
fn int(&mut self) -> Result<i64>;
fn float(&mut self) -> Result<f64>;
fn text(&mut self) -> Result<&str>;
fn bytes(&mut self) -> Result<&[u8]>;
fn uuid(&mut self) -> Result<Uuid>;
fn timestamp(&mut self) -> Result<Timestamp>;
fn date(&mut self) -> Result<Date>;
fn date_time(&mut self) -> Result<DateTime>;
fn json(&mut self) -> Result<Value>;
fn value(&mut self) -> Result<SqlValue>;
// Provided method
fn is_null(&self) -> Result<bool> { ... }
}Expand description
One row’s columns in order, each read once straight into its target, text borrowed meanwhile.
Required Methods§
fn remaining(&self) -> usize
Sourcefn is_null_at(&self, ahead: usize) -> Result<bool>
fn is_null_at(&self, ahead: usize) -> Result<bool>
Of the column ahead places past the next one, without reading it.
fn skip(&mut self) -> Result<()>
fn bool(&mut self) -> Result<bool>
fn int(&mut self) -> Result<i64>
fn float(&mut self) -> Result<f64>
fn text(&mut self) -> Result<&str>
fn bytes(&mut self) -> Result<&[u8]>
fn uuid(&mut self) -> Result<Uuid>
fn timestamp(&mut self) -> Result<Timestamp>
fn date(&mut self) -> Result<Date>
fn date_time(&mut self) -> Result<DateTime>
fn json(&mut self) -> Result<Value>
fn value(&mut self) -> Result<SqlValue>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".