Skip to content

Commit 22efd1d

Browse files
committed
Update for removal of collections traits
1 parent 4f6afa1 commit 22efd1d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,12 @@ pub struct PostgresRow<'stmt> {
14521452
}
14531453

14541454
impl<'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.
15041503
pub trait RowIndex {
15051504
/// Returns the index of the appropriate column, or `None` if no such

0 commit comments

Comments
 (0)