Expand description

Extension traits for working with iterators over Rows.

Using these extension traits, iterators over Rows can be turned into iterators over Extractable types.

Examples

#[derive(Columns, Extract)]
struct User<'a> {
    id: i32,
    name: &'a str,
}

fn extract_users<'a>(i: impl Iterator<Item = &'a Row>) -> Vec<User<'a>> {
    i.extract_ref().collect()
}

Structs

Traits