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

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

The resulting rows of a query.

Methods

impl<'stmt> Rows<'stmt>

fn columns(&self) -> &'stmt [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>

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

impl<'a> IntoIterator for &'a Rows<'a>

type Item = Row<'a>

type IntoIter = Iter<'a>

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

impl<'stmt> IntoIterator for Rows<'stmt>

type Item = Row<'stmt>

type IntoIter = IntoIter<'stmt>

fn into_iter(self) -> IntoIter<'stmt>