Skip to main content

Reader

Trait Reader 

Source
pub trait Reader {
    // Required methods
    fn nothing(&mut self) -> bool;
    fn int(&mut self) -> Result<i64, StoreError>;
    fn flt(&mut self) -> Result<f64, StoreError>;
    fn str(&mut self) -> Result<String, StoreError>;
}
Expand description

Source of typed cell values during deserialization.

Required Methods§

Source

fn nothing(&mut self) -> bool

Reads a null cell; true when the next cell is null.

Source

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

Reads the next cell as i64, or StoreError::Value.

Source

fn flt(&mut self) -> Result<f64, StoreError>

Reads the next cell as f64, or StoreError::Value.

Source

fn str(&mut self) -> Result<String, StoreError>

Reads the next cell as String, or StoreError::Value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Reader for Cells<'_>