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

Unsigned integer

Float

String

Boolean

Error

Empty cell

Trait Implementations

impl<'a> ToCellDeserializer<'a> for DataType
[src]

The deserializer.

[src]

Construct a CellType deserializer at the specified position.

impl Debug for DataType
[src]

[src]

Formats the value using the given formatter.

impl Clone for DataType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DataType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for DataType
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for DataType
[src]

[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for DataType
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<i64> for DataType
[src]

[src]

Performs the conversion.

impl From<f64> for DataType
[src]

[src]

Performs the conversion.

impl From<String> for DataType
[src]

[src]

Performs the conversion.

impl From<bool> for DataType
[src]

[src]

Performs the conversion.

impl From<CellErrorType> for DataType
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for DataType
[src]

[src]

Performs the conversion.

impl From<()> for DataType
[src]

[src]

Performs the conversion.

impl<T> From<Option<T>> for DataType where
    DataType: From<T>, 
[src]

[src]

Performs the conversion.