Struct msi::Row
[−]
[src]
pub struct Row { /* fields omitted */ }
One row from a database table.
Methods
impl Row
[src]
fn len(&self) -> usize
Returns the number of values in the row.
fn columns(&self) -> &[Column]
Returns the list of columns in this row.
fn has_column(&self, column_name: &str) -> bool
Returns true if this row has a column with the given name.
Trait Implementations
impl Clone for Row
[src]
fn clone(&self) -> Row
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Index<usize> for Row
[src]
Gets the value of the column with the given index. Panics if index >= self.len()
.
type Output = Value
The returned type after indexing
fn index(&self, index: usize) -> &Value
The method for the indexing (container[index]
) operation
impl<'a> Index<&'a str> for Row
[src]
Gets the value of the column with the given name. Panics if
!self.has_column(column_name)
.