pub enum DataType {
Int(i64),
Float(f64),
String(String),
Bool(bool),
Error(CellErrorType),
Empty,
}
Expand description
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
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
sourcefn deserialize<D>(deserializer: D) -> Result<DataType, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DataType, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<CellErrorType> for DataType
impl From<CellErrorType> for DataType
sourcefn from(v: CellErrorType) -> Self
fn from(v: CellErrorType) -> Self
Converts to this type from the input type.
sourceimpl<'a> ToCellDeserializer<'a> for DataType
impl<'a> ToCellDeserializer<'a> for DataType
type Deserializer = DataTypeDeserializer<'a>
type Deserializer = DataTypeDeserializer<'a>
The deserializer.
sourcefn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
fn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
Construct a
CellType
deserializer at the specified position.impl StructuralPartialEq for DataType
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more