File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1452,6 +1452,12 @@ pub struct PostgresRow<'stmt> {
14521452}
14531453
14541454impl < ' stmt > PostgresRow < ' stmt > {
1455+ /// Returns the number of values in the row
1456+ #[ inline]
1457+ pub fn len ( & self ) -> uint {
1458+ self . data . len ( )
1459+ }
1460+
14551461 /// Retrieves the contents of a field of the row.
14561462 ///
14571463 /// A field can be accessed by the name or index of its column, though
@@ -1493,13 +1499,6 @@ impl<'stmt> PostgresRow<'stmt> {
14931499 }
14941500}
14951501
1496- impl < ' stmt > Collection for PostgresRow < ' stmt > {
1497- #[ inline]
1498- fn len ( & self ) -> uint {
1499- self . data . len ( )
1500- }
1501- }
1502-
15031502/// A trait implemented by types that can index into columns of a row.
15041503pub trait RowIndex {
15051504 /// Returns the index of the appropriate column, or `None` if no such
You can’t perform that action at this time.
0 commit comments