pub enum DiagnosticLabelKind {
Primary,
Secondary,
Help,
Note,
}Expand description
The role of a diagnostic label.
Variants§
Primary
The primary location or reason for a diagnostic.
Secondary
Additional related context.
Help
Help-oriented context.
Note
Note-oriented context.
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticLabelKind
impl Clone for DiagnosticLabelKind
Source§fn clone(&self) -> DiagnosticLabelKind
fn clone(&self) -> DiagnosticLabelKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiagnosticLabelKind
impl Debug for DiagnosticLabelKind
Source§impl Display for DiagnosticLabelKind
impl Display for DiagnosticLabelKind
Source§impl Hash for DiagnosticLabelKind
impl Hash for DiagnosticLabelKind
Source§impl Ord for DiagnosticLabelKind
impl Ord for DiagnosticLabelKind
Source§fn cmp(&self, other: &DiagnosticLabelKind) -> Ordering
fn cmp(&self, other: &DiagnosticLabelKind) -> Ordering
1.21.0 · 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 DiagnosticLabelKind
impl PartialEq for DiagnosticLabelKind
Source§impl PartialOrd for DiagnosticLabelKind
impl PartialOrd for DiagnosticLabelKind
impl Copy for DiagnosticLabelKind
impl Eq for DiagnosticLabelKind
impl StructuralPartialEq for DiagnosticLabelKind
Auto Trait Implementations§
impl Freeze for DiagnosticLabelKind
impl RefUnwindSafe for DiagnosticLabelKind
impl Send for DiagnosticLabelKind
impl Sync for DiagnosticLabelKind
impl Unpin for DiagnosticLabelKind
impl UnsafeUnpin for DiagnosticLabelKind
impl UnwindSafe for DiagnosticLabelKind
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