[][src]Function grin_store::lmdb::option_to_not_found

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

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