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]
impl Record
[src]pub fn insert(
&mut self,
field_name: String,
value: FieldValue
) -> Option<FieldValue>
[src]
&mut self,
field_name: String,
value: FieldValue
) -> Option<FieldValue>
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 From<HashMap<String, FieldValue, RandomState>> for Record
[src]
impl From<HashMap<String, FieldValue, RandomState>> for Record
[src]fn from(map: HashMap<String, FieldValue, RandomState>) -> Self
[src]
impl IntoIterator for Record
[src]
impl IntoIterator for Record
[src]impl ReadableRecord for Record
[src]
impl ReadableRecord for Record
[src]fn read_using<T>(
field_iterator: &mut FieldIterator<'_, T>
) -> Result<Self, FieldIOError> where
T: Read + Seek,
[src]
field_iterator: &mut FieldIterator<'_, T>
) -> Result<Self, FieldIOError> where
T: Read + Seek,
impl StructuralPartialEq for Record
[src]
impl StructuralPartialEq for Record
[src]impl WritableRecord for Record
[src]
impl WritableRecord for Record
[src]fn write_using<'a, W: Write>(
&self,
field_writer: &mut FieldWriter<'a, W>
) -> Result<(), FieldIOError>
[src]
&self,
field_writer: &mut FieldWriter<'a, W>
) -> Result<(), FieldIOError>
Auto Trait Implementations
impl RefUnwindSafe for Record
impl RefUnwindSafe for Record
impl UnwindSafe for Record
impl UnwindSafe for Record