Skip to main content

ColumnReader

Trait ColumnReader 

Source
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§

Source

fn remaining(&self) -> usize

Source

fn is_null_at(&self, ahead: usize) -> Result<bool>

Of the column ahead places past the next one, without reading it.

Source

fn skip(&mut self) -> Result<()>

Source

fn bool(&mut self) -> Result<bool>

Source

fn int(&mut self) -> Result<i64>

Source

fn float(&mut self) -> Result<f64>

Source

fn text(&mut self) -> Result<&str>

Source

fn bytes(&mut self) -> Result<&[u8]>

Source

fn uuid(&mut self) -> Result<Uuid>

Source

fn timestamp(&mut self) -> Result<Timestamp>

Source

fn date(&mut self) -> Result<Date>

Source

fn date_time(&mut self) -> Result<DateTime>

Source

fn json(&mut self) -> Result<Value>

Source

fn value(&mut self) -> Result<SqlValue>

Provided Methods§

Source

fn is_null(&self) -> Result<bool>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§