pub enum DiagnosticWarning {
Generic,
DanglingDocumentation,
Redefinition,
EmptyDefinition,
NotARealNumber,
ImplicitEmpty,
}
Expand description
Reportable error diagnostics.
Variants§
Generic
Generic unspecified warning.
DanglingDocumentation
Documentation comment can’t be attached to a proper subject.
Redefinition
Redefinition of content. Consider removing this instance.
EmptyDefinition
Non-explicit empty definition. Please insert “empty” for a deliberately empty definition.
NotARealNumber
Failed to parse value as a “real” number.
ImplicitEmpty
No valid content found for this definition. Add ‘empty’ on a separate line if it is intentionally empty.
Implementations§
Source§impl DiagnosticWarning
impl DiagnosticWarning
pub fn diagnostic( &self, range: Range, related_information: Option<Vec<DiagnosticRelatedInformation>>, ) -> Diagnostic
Trait Implementations§
Source§impl Clone for DiagnosticWarning
impl Clone for DiagnosticWarning
Source§fn clone(&self) -> DiagnosticWarning
fn clone(&self) -> DiagnosticWarning
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 DiagnosticWarning
impl Debug for DiagnosticWarning
Source§impl Default for DiagnosticWarning
impl Default for DiagnosticWarning
Source§fn default() -> DiagnosticWarning
fn default() -> DiagnosticWarning
Returns the “default value” for a type. Read more
Source§impl Display for DiagnosticWarning
impl Display for DiagnosticWarning
Source§impl EnumMessage for DiagnosticWarning
impl EnumMessage for DiagnosticWarning
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
Source§impl PartialEq for DiagnosticWarning
impl PartialEq for DiagnosticWarning
impl StructuralPartialEq for DiagnosticWarning
Auto Trait Implementations§
impl Freeze for DiagnosticWarning
impl RefUnwindSafe for DiagnosticWarning
impl Send for DiagnosticWarning
impl Sync for DiagnosticWarning
impl Unpin for DiagnosticWarning
impl UnwindSafe for DiagnosticWarning
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