pub trait ExtractOwned: for<'a> Extract<'a> { }
Expand description

A type that can be extracted from a Row without borrowing the Row.

This is primarily useful for trait bounds on functions. For example

fn extract<T: ExtractOwned>() -> T {
    let row: Row = get_row();
    T::extract_once(&row)
}

Implementors§

source§

impl<T> ExtractOwned for Twhere T: for<'a> Extract<'a>,