[][src]Trait error_code::IntoCategory

pub trait IntoCategory<C: Category>: Category + Sized {
    fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>;
}

Describes way to convert from one Category into another.

Required methods

fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>

Converts error from category into own category.

Loading content...

Implementors

Loading content...