mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Fix rustdoc warnings
This commit is contained in:
parent
176e4c232b
commit
519ef9dc84
14
src/row.rs
14
src/row.rs
@ -139,11 +139,11 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
|
||||
/// Panics if calling `row.get_checked(idx)` would return an error,
|
||||
/// including:
|
||||
///
|
||||
/// * 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
|
||||
/// * 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 {
|
||||
self.get_checked(idx).unwrap()
|
||||
}
|
||||
@ -215,8 +215,8 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
|
||||
/// Panics if calling `row.get_raw_checked(idx)` would return an error,
|
||||
/// including:
|
||||
///
|
||||
/// * If `idx` is outside the range of columns in the returned query.
|
||||
/// * If `idx` is not a valid column name for this row.
|
||||
/// * If `idx` is outside the range of columns in the returned query.
|
||||
/// * If `idx` is not a valid column name for this row.
|
||||
pub fn get_raw<I: RowIndex>(&self, idx: I) -> ValueRef<'a> {
|
||||
self.get_raw_checked(idx).unwrap()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user