Function grin_store::lmdb::option_to_not_found

source ·
pub fn option_to_not_found<T, F>(
    res: Result<Option<T>, Error>,
    field_name: F
) -> Result<T, Error>
where F: Fn() -> String,
Expand description

unwraps the inner option by converting the none case to a not found error