pub struct Record { /* private fields */ }
Expand description
Represents a single record (row) in a RecordArray
Implementations§
Source§impl Record
impl Record
Sourcepub fn add_field(&mut self, name: &str, value: FieldValue)
pub fn add_field(&mut self, name: &str, value: FieldValue)
Add a field to the record
Sourcepub fn get_field(&self, name: &str) -> Option<&FieldValue>
pub fn get_field(&self, name: &str) -> Option<&FieldValue>
Get a field value by name
Sourcepub fn get_field_mut(&mut self, name: &str) -> Option<&mut FieldValue>
pub fn get_field_mut(&mut self, name: &str) -> Option<&mut FieldValue>
Get a mutable reference to a field value by name
Sourcepub fn num_fields(&self) -> usize
pub fn num_fields(&self) -> usize
Get the number of fields
Sourcepub fn field_names(&self) -> &[String]
pub fn field_names(&self) -> &[String]
Get the field names
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more