pub trait DiagnosticCode: Copy {
    const CATEGORY: Category;

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

    // Provided method
    fn into_info(self) -> DiagnosticInfo { ... }
}

Required Associated Constants§

Required Methods§

source

fn severity(self) -> Severity

source

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

Provided Methods§

Implementors§