pub struct RowSet { /* private fields */ }Expand description
A collection of Rows with schema metadata.
Wraps Vec<Row> and provides convenience methods for accessing results.
Implementations§
Source§impl RowSet
impl RowSet
Sourcepub fn from_rows(rows: Vec<Row>) -> Self
pub fn from_rows(rows: Vec<Row>) -> Self
Create a RowSet from rows.
Column names are extracted from the first row. If rows is empty,
columns will be empty.
Sourcepub fn new(columns: Vec<String>, rows: Vec<Row>) -> Self
pub fn new(columns: Vec<String>, rows: Vec<Row>) -> Self
Create a RowSet with explicit column names.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Return the number of columns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowSet
impl RefUnwindSafe for RowSet
impl Send for RowSet
impl Sync for RowSet
impl Unpin for RowSet
impl UnsafeUnpin for RowSet
impl UnwindSafe for RowSet
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