mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Try to explain why we need a map function
To tranform the fallible streaming iterator.
This commit is contained in:
parent
bb34f3fec8
commit
7b08dc9ad5
@ -95,6 +95,7 @@ impl Drop for Rows<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// `F` is used to tranform the _streaming_ iterator into a _fallible_ iterator.
|
||||
pub struct Map<'stmt, F> {
|
||||
rows: Rows<'stmt>,
|
||||
f: F,
|
||||
@ -116,6 +117,8 @@ where
|
||||
}
|
||||
|
||||
/// An iterator over the mapped resulting rows of a query.
|
||||
///
|
||||
/// `F` is used to tranform the _streaming_ iterator into a _standard_ iterator.
|
||||
pub struct MappedRows<'stmt, F> {
|
||||
rows: Rows<'stmt>,
|
||||
map: F,
|
||||
|
@ -219,6 +219,8 @@ impl Statement<'_> {
|
||||
/// Ok(names)
|
||||
/// }
|
||||
/// ```
|
||||
/// `f` is used to tranform the _streaming_ iterator into a _standard_
|
||||
/// iterator.
|
||||
///
|
||||
/// ## Failure
|
||||
///
|
||||
@ -256,6 +258,8 @@ impl Statement<'_> {
|
||||
/// Ok(names)
|
||||
/// }
|
||||
/// ```
|
||||
/// `f` is used to tranform the _streaming_ iterator into a _standard_
|
||||
/// iterator.
|
||||
///
|
||||
/// ## Failure
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user