We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c413633 commit 774533eCopy full SHA for 774533e
1 file changed
src/lib.rs
@@ -1198,6 +1198,16 @@ impl<'stmt> Iterator<PostgresRow<'stmt>> for PostgresResult<'stmt> {
1198
}
1199
})
1200
1201
+
1202
+ fn size_hint(&self) -> (uint, Option<uint>) {
1203
+ let lower = self.data.len();
1204
+ let upper = if self.more_rows {
1205
+ None
1206
+ } else {
1207
+ Some(lower)
1208
+ };
1209
+ (lower, upper)
1210
+ }
1211
1212
1213
/// A single result row of a query.
0 commit comments