Struct dbase::Record[][src]

pub struct Record { /* fields omitted */ }

Type definition of a generic record. A .dbf file is composed of many records

Implementations

impl Record[src]

pub fn insert(
    &mut self,
    field_name: String,
    value: FieldValue
) -> Option<FieldValue>
[src]

Inserts a new value in the record, returning the old one if there was any

Example

let mut record = dbase::Record::default();
record.insert("FirstName".to_owned(), dbase::FieldValue::Character(Some("Yoshi".to_owned())));

pub fn get(&self, field_name: &str) -> Option<&FieldValue>[src]

Returns the FieldValue for the given field name

pub fn get_mut(&mut self, field_name: &str) -> Option<&mut FieldValue>[src]

Returns the mutable FieldValue for the given field name

pub fn remove(&mut self, field_name: &str) -> Option<FieldValue>[src]

Removes the FieldValue for the given field name

Trait Implementations

impl Debug for Record[src]

impl Default for Record[src]

impl From<HashMap<String, FieldValue, RandomState>> for Record[src]

impl IntoIterator for Record[src]

type Item = (String, FieldValue)

The type of the elements being iterated over.

type IntoIter = IntoIter<String, FieldValue>

Which kind of iterator are we turning this into?

impl PartialEq<Record> for Record[src]

impl ReadableRecord for Record[src]

impl StructuralPartialEq for Record[src]

impl WritableRecord for Record[src]

Auto Trait Implementations

impl RefUnwindSafe for Record

impl Send for Record

impl Sync for Record

impl Unpin for Record

impl UnwindSafe for Record

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.