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§
Sourcefn int(&mut self) -> Result<i64, StoreError>
fn int(&mut self) -> Result<i64, StoreError>
Reads the next cell as i64, or StoreError::Value.
Sourcefn flt(&mut self) -> Result<f64, StoreError>
fn flt(&mut self) -> Result<f64, StoreError>
Reads the next cell as f64, or StoreError::Value.
Sourcefn str(&mut self) -> Result<String, StoreError>
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".