[−][src]Struct quaint::prelude::ResultSet
Encapsulates a set of results and their respective column names.
Methods
impl ResultSet
[src]
pub fn new(
names: Vec<String>,
rows: Vec<Vec<ParameterizedValue<'static>>>
) -> Self
[src]
names: Vec<String>,
rows: Vec<Vec<ParameterizedValue<'static>>>
) -> Self
Creates a new instance, bound to the given column names and result rows.
pub fn columns(&self) -> &Vec<String>
[src]
An iterator of column names.
pub fn len(&self) -> usize
[src]
Returns the number of rows in the ResultSet
.
pub fn is_empty(&self) -> bool
[src]
Returns true if the ResultSet
contains no rows.
pub fn first(&self) -> Option<ResultRowRef>
[src]
Returns the first row of the ResultSet
, or None if the set is empty.
pub fn get(&self, index: usize) -> Option<ResultRowRef>
[src]
Returns a reference to a row in a given position.
Trait Implementations
impl Debug for ResultSet
[src]
impl From<ResultSet> for Value
[src]
impl IntoIterator for ResultSet
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnwindSafe for ResultSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,