pub struct DiagnosticDefinition {
pub code: &'static str,
pub title: &'static str,
pub category: DiagnosticCategory,
pub typical_severity: TypicalSeverity,
pub summary: &'static str,
}Expand description
Stable metadata shared by every occurrence of a built-in diagnostic code.
Fields§
§code: &'static str§title: &'static str§category: DiagnosticCategory§typical_severity: TypicalSeverity§summary: &'static strImplementations§
Source§impl DiagnosticDefinition
impl DiagnosticDefinition
Sourcepub fn documentation_url(&self) -> String
pub fn documentation_url(&self) -> String
Canonical case-preserving anchor for this built-in diagnostic.
Trait Implementations§
Source§impl Clone for DiagnosticDefinition
impl Clone for DiagnosticDefinition
Source§fn clone(&self) -> DiagnosticDefinition
fn clone(&self) -> DiagnosticDefinition
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 DiagnosticDefinition
Source§impl Debug for DiagnosticDefinition
impl Debug for DiagnosticDefinition
impl Eq for DiagnosticDefinition
Source§impl From<&'static DiagnosticDefinition> for DiagnosticCode
impl From<&'static DiagnosticDefinition> for DiagnosticCode
Source§fn from(definition: &'static DiagnosticDefinition) -> Self
fn from(definition: &'static DiagnosticDefinition) -> Self
Converts to this type from the input type.
Source§impl Hash for DiagnosticDefinition
impl Hash for DiagnosticDefinition
Source§impl PartialEq for DiagnosticDefinition
impl PartialEq for DiagnosticDefinition
impl StructuralPartialEq for DiagnosticDefinition
Auto Trait Implementations§
impl Freeze for DiagnosticDefinition
impl RefUnwindSafe for DiagnosticDefinition
impl Send for DiagnosticDefinition
impl Sync for DiagnosticDefinition
impl Unpin for DiagnosticDefinition
impl UnsafeUnpin for DiagnosticDefinition
impl UnwindSafe for DiagnosticDefinition
Blanket Implementations§
impl<T> Allocation 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more