Enum calamine::DataType
[−]
[src]
pub enum DataType { Int(i64), Float(f64), String(String), Bool(bool), Error(CellErrorType), Empty, }
An enum to represent all different data types that can appear as a value in a worksheet cell
Variants
Int(i64)
Unsigned integer
Float(f64)
Float
String(String)
String
Bool(bool)
Boolean
Error(CellErrorType)
Error
Empty
Empty cell
Trait Implementations
impl Debug for DataType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DataType
[src]
fn clone(&self) -> DataType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DataType
[src]
fn eq(&self, __arg_0: &DataType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataType) -> bool
[src]
This method tests for !=
.
impl Default for DataType
[src]
impl Display for DataType
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for DataType
[src]
fn deserialize<D>(deserializer: D) -> Result<DataType, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<i64> for DataType
[src]
impl From<f64> for DataType
[src]
impl From<String> for DataType
[src]
impl From<bool> for DataType
[src]
impl From<CellErrorType> for DataType
[src]
fn from(v: CellErrorType) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a str> for DataType
[src]
impl From<()> for DataType
[src]
impl<T> From<Option<T>> for DataType where
DataType: From<T>,
[src]
DataType: From<T>,
impl<'a> ToCellDeserializer<'a> for DataType
[src]
type Deserializer = DataTypeDeserializer<'a>
The deserializer.
fn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
[src]
Construct a CellType
deserializer at the specified position.