Skip to main content

code_of

Function code_of 

Source
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.