Skip to main content

DiagnosticCode

Type Alias DiagnosticCode 

Source
pub type DiagnosticCode = String;
Expand description

Stable diagnostic code, e.g. GEN-MISSING-TABLE.

Kept as a plain string (not an enum) so extensions can define their own namespaced codes without a dependency on this crate’s enum.

Aliased Type§

pub struct DiagnosticCode { /* private fields */ }

Trait Implementations§

Source§

impl From<&'static DiagnosticDefinition> for DiagnosticCode

Source§

fn from(definition: &'static DiagnosticDefinition) -> Self

Converts to this type from the input type.