[−][src]Function grin_store::option_to_not_found
pub fn option_to_not_found<T>(
res: Result<Option<T>, Error>,
field_name: &str
) -> Result<T, Error>
unwraps the inner option by converting the none case to a not found error
pub fn option_to_not_found<T>(
res: Result<Option<T>, Error>,
field_name: &str
) -> Result<T, Error>
unwraps the inner option by converting the none case to a not found error