Skip to main content

Sink

Trait Sink 

Source
pub trait Sink {
    // Required methods
    fn int(&mut self, col: usize, row: usize, value: Option<i32>);
    fn double(&mut self, col: usize, row: usize, value: Option<f64>);
    fn logical(&mut self, col: usize, row: usize, value: Option<bool>);
    fn date(&mut self, col: usize, row: usize, value: Option<i32>);
    fn text(&mut self, col: usize, row: usize, raw: &[u8]);
}
Expand description

Receives decoded values, one call per selected column per row, in row order. col indexes Table::columns; row restarts at 0 on every Table::read_rows call.

Required Methods§

Source

fn int(&mut self, col: usize, row: usize, value: Option<i32>)

Source

fn double(&mut self, col: usize, row: usize, value: Option<f64>)

Source

fn logical(&mut self, col: usize, row: usize, value: Option<bool>)

Source

fn date(&mut self, col: usize, row: usize, value: Option<i32>)

Days since 1970-01-01.

Source

fn text(&mut self, col: usize, row: usize, raw: &[u8])

Raw field bytes in the file encoding (see Encoding::decode_into), already trimmed. Character values are never missing; a blank field is the empty string.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§