Struct mysql_async::Row
[−]
[src]
pub struct Row { /* fields omitted */ }
Row of a result set.
Row could be indexed by numeric column index or by column name.
Methods
impl Row
[src]
fn len(&self) -> usize
Returns length of a row.
fn as_ref(&self, index: usize) -> Option<&Value>
Returns reference to the value of a column with index index
if it exists and wasn't taken
by Row::take
method.
Non panicking version of row[usize]
.
fn get<T, I>(&mut self, index: I) -> Option<T> where
T: FromValue,
I: ColumnIndex,
T: FromValue,
I: ColumnIndex,
Will copy value at index index
if it was not taken by Row::take
earlier,
then will convert it to T
.
fn take<T, I>(&mut self, index: I) -> Option<T> where
T: FromValue,
I: ColumnIndex,
T: FromValue,
I: ColumnIndex,
Will take value of a column with index index
if it exists and wasn't taken earlier then
will convert it to T
.
fn unwrap(self) -> Vec<Value>
Trait Implementations
impl FromRow for Row
[src]
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 PartialEq for Row
[src]
fn eq(&self, __arg_0: &Row) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Row) -> bool
This method tests for !=
.
impl Debug for Row
[src]
impl Index<usize> for Row
[src]
type Output = Value
The returned type after indexing
fn index<'a>(&'a self, index: usize) -> &'a Value
The method for the indexing (container[index]
) operation