pub struct DiagnosticInfo {
pub code: &'static str,
pub severity: DiagnosticSeverity,
pub category: Option<ErrorCategory>,
pub summary: &'static str,
pub status: CodeStatus,
}Expand description
One entry in a crate’s diagnostic registry.
Fields§
§code: &'static str§severity: DiagnosticSeverity§category: Option<ErrorCategory>§summary: &'static str§status: CodeStatusImplementations§
Source§impl DiagnosticInfo
impl DiagnosticInfo
pub const fn new( code: &'static str, severity: DiagnosticSeverity, summary: &'static str, ) -> DiagnosticInfo
pub const fn with_category(self, category: ErrorCategory) -> DiagnosticInfo
pub const fn retired(self, since: &'static str) -> DiagnosticInfo
pub fn namespace(&self) -> &'static str
pub fn stage(&self) -> Option<DiagnosticStage>
Trait Implementations§
Source§impl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
Source§fn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
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 DiagnosticInfo
Source§impl Debug for DiagnosticInfo
impl Debug for DiagnosticInfo
impl Eq for DiagnosticInfo
Source§impl PartialEq for DiagnosticInfo
impl PartialEq for DiagnosticInfo
Source§fn eq(&self, other: &DiagnosticInfo) -> bool
fn eq(&self, other: &DiagnosticInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiagnosticInfo
Auto Trait Implementations§
impl Freeze for DiagnosticInfo
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnsafeUnpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more