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]
impl Debug for DataType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for DataType
[src]
impl Clone for DataType
fn clone(&self) -> DataType
[src]
fn clone(&self) -> DataType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for DataType
[src]
impl PartialEq for DataType
fn eq(&self, other: &DataType) -> bool
[src]
fn eq(&self, other: &DataType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DataType) -> bool
[src]
fn ne(&self, other: &DataType) -> bool
This method tests for !=
.
impl Default for DataType
[src]
impl Default for DataType
impl Display for DataType
[src]
impl Display for DataType
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for DataType
[src]
impl<'de> Deserialize<'de> for DataType
fn deserialize<D>(deserializer: D) -> Result<DataType, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<DataType, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<i64> for DataType
[src]
impl From<i64> for DataType
impl From<f64> for DataType
[src]
impl From<f64> for DataType
impl From<String> for DataType
[src]
impl From<String> for DataType
impl From<bool> for DataType
[src]
impl From<bool> for DataType
impl From<CellErrorType> for DataType
[src]
impl From<CellErrorType> for DataType
fn from(v: CellErrorType) -> Self
[src]
fn from(v: CellErrorType) -> Self
Performs the conversion.
impl<'a> From<&'a str> for DataType
[src]
impl<'a> From<&'a str> for DataType
impl From<()> for DataType
[src]
impl From<()> for DataType
impl<T> From<Option<T>> for DataType where
DataType: From<T>,
[src]
impl<T> From<Option<T>> for DataType where
DataType: From<T>,
impl<'a> ToCellDeserializer<'a> for DataType
[src]
impl<'a> ToCellDeserializer<'a> for DataType
type Deserializer = DataTypeDeserializer<'a>
The deserializer.
fn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
[src]
fn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
Construct a CellType
deserializer at the specified position.