pub trait ToErrorCodewhere
Self: Error,{
// Required method
fn error_code(&self) -> &str;
}
Expand description
Convert self
type to an error code.
Used with DC parser pipeline error types.
pub trait ToErrorCodewhere
Self: Error,{
// Required method
fn error_code(&self) -> &str;
}
Convert self
type to an error code.
Used with DC parser pipeline error types.