Update docs on Row::get

This commit is contained in:
John Gallagher 2017-01-22 19:42:51 -05:00
parent 846a59695c
commit 68ae7de1d5

View File

@ -1105,9 +1105,11 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
/// ///
/// ## Failure /// ## Failure
/// ///
/// Panics if the underlying SQLite column type is not a valid type as a source for `T`. /// Panics if calling `row.get_checked(idx)` would return an error, including:
/// ///
/// Panics if `idx` is outside the range of columns in the returned query. /// * If the underlying SQLite column type is not a valid type as a source for `T`
/// * If the underlying SQLite integral value is outside the range representable by `T`
/// * If `idx` is outside the range of columns in the returned query
pub fn get<I: RowIndex, T: FromSql>(&self, idx: I) -> T { pub fn get<I: RowIndex, T: FromSql>(&self, idx: I) -> T {
self.get_checked(idx).unwrap() self.get_checked(idx).unwrap()
} }