pub struct Row<'a> { /* private fields */ }Expand description
A single row produced by Rows::next.
Implementations§
Source§impl<'a> Row<'a>
impl<'a> Row<'a>
Sourcepub fn get_by_name(&self, name: &str) -> Option<&Value>
pub fn get_by_name(&self, name: &str) -> Option<&Value>
Value of the column named name, if present.
pub fn column_count(&self) -> usize
Sourcepub fn column_name(&self, i: usize) -> Option<&str>
pub fn column_name(&self, i: usize) -> Option<&str>
Name of the column at index i, if present.
pub fn as_slice(&self) -> &[Value]
pub fn to_vec(&self) -> Vec<Value>
Auto Trait Implementations§
impl<'a> Freeze for Row<'a>
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> Send for Row<'a>
impl<'a> Sync for Row<'a>
impl<'a> Unpin for Row<'a>
impl<'a> UnsafeUnpin for Row<'a>
impl<'a> UnwindSafe for Row<'a>
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