[][src]Struct quaint::prelude::ResultSet

pub struct ResultSet { /* fields omitted */ }

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]

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]

type Item = ResultRow

The type of the elements being iterated over.

type IntoIter = ResultSetIterator

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,