pub enum DiagnosticSeverity {
DSError,
DSWarning,
DSRemark,
DSNote,
}
Expand description
Wrapper for LLVMDiagnosticSeverity
, representing the severity levels of diagnostics in LLVM.
The DiagnosticSeverity
enum maps to the LLVMDiagnosticSeverity
in the LLVM core library. It categorizes
the severity levels of diagnostic messages that can be generated by LLVM during compilation or other processing.
This enum helps identify the nature of the diagnostic messages, such as errors, warnings, remarks, and notes.
Variants§
DSError
Represents an error diagnostic. Errors indicate critical issues that typically prevent the code from compiling successfully.
DSWarning
Represents a warning diagnostic. Warnings indicate potential issues that do not stop compilation but could lead to problems.
DSRemark
Represents a remark diagnostic. Remarks provide additional information that might be useful but is not necessarily problematic.
DSNote
Represents a note diagnostic. Notes usually provide supplementary information related to warnings or errors.
Trait Implementations§
source§impl Clone for DiagnosticSeverity
impl Clone for DiagnosticSeverity
source§fn clone(&self) -> DiagnosticSeverity
fn clone(&self) -> DiagnosticSeverity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiagnosticSeverity
impl Debug for DiagnosticSeverity
source§impl From<LLVMDiagnosticSeverity> for DiagnosticSeverity
impl From<LLVMDiagnosticSeverity> for DiagnosticSeverity
source§fn from(severity: LLVMDiagnosticSeverity) -> Self
fn from(severity: LLVMDiagnosticSeverity) -> Self
source§impl PartialEq for DiagnosticSeverity
impl PartialEq for DiagnosticSeverity
impl Copy for DiagnosticSeverity
impl Eq for DiagnosticSeverity
impl StructuralPartialEq for DiagnosticSeverity
Auto Trait Implementations§
impl Freeze for DiagnosticSeverity
impl RefUnwindSafe for DiagnosticSeverity
impl Send for DiagnosticSeverity
impl Sync for DiagnosticSeverity
impl Unpin for DiagnosticSeverity
impl UnwindSafe for DiagnosticSeverity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)