pub enum DiagnosticCategory {
Syntax,
Resolution,
Layout,
Text,
Pdf,
Io,
Internal,
}Expand description
Diagnostic grouping and source of the diagnostic ID prefix.
Changing a category changes the descriptive ID, but preserves its numeric compatibility alias.
use mos_core::{DiagnosticCategory, codes};
assert_eq!(codes::MOS0033.category(), DiagnosticCategory::Resolution);Variants§
Syntax
Surface syntax: tokenisation, directive shape, inline grammar.
Resolution
Name and reference resolution, directive and argument validation.
Layout
Page geometry, paper sizes, style application.
Text
Text shaping, glyph coverage, font selection.
PDF backend emission and packaging.
Io
Filesystem and asset I/O.
Internal
Compiler-internal invariants.
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticCategory
impl Clone for DiagnosticCategory
Source§fn clone(&self) -> DiagnosticCategory
fn clone(&self) -> DiagnosticCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiagnosticCategory
Source§impl Debug for DiagnosticCategory
impl Debug for DiagnosticCategory
Source§impl Display for DiagnosticCategory
impl Display for DiagnosticCategory
impl Eq for DiagnosticCategory
Source§impl Hash for DiagnosticCategory
impl Hash for DiagnosticCategory
Source§impl Ord for DiagnosticCategory
impl Ord for DiagnosticCategory
Source§fn cmp(&self, other: &DiagnosticCategory) -> Ordering
fn cmp(&self, other: &DiagnosticCategory) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DiagnosticCategory
impl PartialEq for DiagnosticCategory
Source§fn eq(&self, other: &DiagnosticCategory) -> bool
fn eq(&self, other: &DiagnosticCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DiagnosticCategory
impl PartialOrd for DiagnosticCategory
impl StructuralPartialEq for DiagnosticCategory
Auto Trait Implementations§
impl Freeze for DiagnosticCategory
impl RefUnwindSafe for DiagnosticCategory
impl Send for DiagnosticCategory
impl Sync for DiagnosticCategory
impl Unpin for DiagnosticCategory
impl UnsafeUnpin for DiagnosticCategory
impl UnwindSafe for DiagnosticCategory
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