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
dBase String type
A string full of ‘pad bytes’ is considered None
dBase type to represent numbers, stored as String in the file
dBase type for boolean values, stored as a character in the file
dBase type for dates, stored as a string in the file
Another dBase type to represent numbers, stored as String in the file
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = FieldConversionError
type Error = FieldConversionError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnwindSafe for FieldValue
Blanket Implementations
Mutably borrows from an owned value. Read more