pub open spec fn spec_ok_or<T, E>(option: Option<T>, err: E) -> Result<T, E>
{ match option { Some(t) => Ok(t), None => Err(err), } }