pub trait DiagnosticCode: Copy {
    const CATEGORY: Category;

    fn severity(self) -> Severity;
    fn code_and_message(self) -> (u8, &'static str);

    fn into_info(self) -> DiagnosticInfo { ... }
}

Associated Constants

Required methods

Provided methods

Implementors