#[non_exhaustive]pub enum DiagnosticCode {
InvalidDirectiveName,
UnclosedDirectiveContainer,
InvalidDirectiveAttribute,
InvalidDocument,
}Expand description
A machine-readable category for a Diagnostic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDirectiveName
A directive name was malformed.
UnclosedDirectiveContainer
A container directive (:::name) was never closed.
InvalidDirectiveAttribute
A directive attribute without a valid name was dropped.
InvalidDocument
AST validation failure (an invalid or unsupported node shape), the single
code used by Document::validate and by serialize/HTML pre-validation.
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
impl Copy for DiagnosticCode
Source§impl Debug for DiagnosticCode
impl Debug for DiagnosticCode
impl Eq for DiagnosticCode
Source§impl PartialEq for DiagnosticCode
impl PartialEq for DiagnosticCode
impl StructuralPartialEq for DiagnosticCode
Auto Trait Implementations§
impl Freeze for DiagnosticCode
impl RefUnwindSafe for DiagnosticCode
impl Send for DiagnosticCode
impl Sync for DiagnosticCode
impl Unpin for DiagnosticCode
impl UnsafeUnpin for DiagnosticCode
impl UnwindSafe for DiagnosticCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more