Function kind_for_code
Source pub const fn kind_for_code(code: ErrorCode) -> ErrorKind
Expand description
Total, pure projection from ErrorCode to ErrorKind.
Every variant is mapped here; adding a new code variant without extending
this function is a compile error.