Enum dbase::FieldValue[][src]

pub enum FieldValue {
    Character(Option<String>),
    Numeric(Option<f64>),
    Logical(Option<bool>),
    Date(Option<Date>),
    Float(Option<f32>),
    Integer(i32),
    Currency(f64),
    DateTime(DateTime),
    Double(f64),
    Memo(String),
}
Expand description

Enum where each variant stores the record value

Variants

Character(Option<String>)

dBase String type

A string full of ‘pad bytes’ is considered None

Tuple Fields of Character

0: Option<String>
Numeric(Option<f64>)

dBase type to represent numbers, stored as String in the file

Tuple Fields of Numeric

0: Option<f64>
Logical(Option<bool>)

dBase type for boolean values, stored as a character in the file

Tuple Fields of Logical

0: Option<bool>
Date(Option<Date>)

dBase type for dates, stored as a string in the file

Tuple Fields of Date

0: Option<Date>
Float(Option<f32>)

Another dBase type to represent numbers, stored as String in the file

Tuple Fields of Float

0: Option<f32>
Integer(i32)

Tuple Fields of Integer

0: i32
Currency(f64)

Tuple Fields of Currency

0: f64
DateTime(DateTime)

Tuple Fields of DateTime

0: DateTime
Double(f64)

Tuple Fields of Double

0: f64
Memo(String)

Memo is a dBase type that allows to store Strings that are longer than 255 bytes. These strings are stored in an external file called the Memo file

Tuple Fields of Memo

0: String

Implementations

Returns the corresponding field type of the contained value

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.