Struct postgres::rows::Rows [] [src]

pub struct Rows<'stmt> {
    // some fields omitted
}

The resulting rows of a query.

Methods

impl<'stmt> Rows<'stmt>
[src]

fn columns(&self) -> &[Column]

Returns a slice describing the columns of the Rows.

fn len(&self) -> usize

Returns the number of rows present.

fn get<'a>(&'a self, idx: usize) -> Row<'a>

Returns a specific Row.

Panics

Panics if idx is out of bounds.

fn iter<'a>(&'a self) -> Iter<'a>

Returns an iterator over the Rows.

Trait Implementations

impl<'a> Debug for Rows<'a>
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> IntoIterator for &'a Rows<'a>
[src]

type Item = Row<'a>

The type of the elements being iterated over.

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Iter<'a>

Creates an iterator from a value. Read more