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