pub fn code_of<C: ErrorCode>(err: &Error) -> Option<C>Available on crate feature
terminal only.Expand description
The code of the outermost CodedError in the chain, if any.
pub fn code_of<C: ErrorCode>(err: &Error) -> Option<C>terminal only.The code of the outermost CodedError in the chain, if any.