Trait error_code::IntoCategory
source · [−]pub trait IntoCategory<C: Category>: Category + Sized {
fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>;
}Expand description
Describes way to convert from one Category into another.
pub trait IntoCategory<C: Category>: Category + Sized {
fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>;
}Describes way to convert from one Category into another.