pub trait DataType {
Show 14 methods
// Required methods
fn is_empty(&self) -> bool;
fn is_int(&self) -> bool;
fn is_float(&self) -> bool;
fn is_bool(&self) -> bool;
fn is_string(&self) -> bool;
fn is_error(&self) -> bool;
fn get_int(&self) -> Option<i64>;
fn get_float(&self) -> Option<f64>;
fn get_bool(&self) -> Option<bool>;
fn get_string(&self) -> Option<&str>;
fn get_error(&self) -> Option<&CellErrorType>;
fn as_string(&self) -> Option<String>;
fn as_i64(&self) -> Option<i64>;
fn as_f64(&self) -> Option<f64>;
}
Expand description
A trait to represent all different data types that can appear as a value in a worksheet cell
Required Methods§
Sourcefn get_string(&self) -> Option<&str>
fn get_string(&self) -> Option<&str>
Try getting string value
Sourcefn get_error(&self) -> Option<&CellErrorType>
fn get_error(&self) -> Option<&CellErrorType>
Try getting Error value