Struct rusqlite::Rows

source ·
pub struct Rows<'stmt> { /* private fields */ }
Expand description

An handle for the resulting rows of a query.

Implementations§

Attempt to get the next row from the query. Returns Some(Ok(Row)) if there is another row, Some(Err(...)) if there was an error getting the next row, and None if all rows have been retrieved.

Note

This interface is not compatible with Rust’s Iterator trait, because the lifetime of the returned row is tied to the lifetime of self. This is a “streaming iterator”. For a more natural interface, consider using query_map or query_and_then instead, which return types that implement Iterator.

Trait Implementations§

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.