pub trait Discriminant: Display + Sealed {
const MAX_N_DIGITS: usize;
}Expand description
A discriminant for a DiagnosticCode.
§Note to Consumers
This trait is sealed; it cannot be implemented outside the maybe_fatal crate. It
is currently implemented for the following types:
Required Associated Constants§
Sourceconst MAX_N_DIGITS: usize
const MAX_N_DIGITS: usize
The max number of digits in the discriminant.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.