Struct drias::diagnostic::Diagnostic
source · [−]pub struct Diagnostic { /* private fields */ }
Implementations
sourceimpl Diagnostic
impl Diagnostic
pub fn new<T: Into<String>>(level: DiagnosticLevel, message: T) -> Self
pub fn spanned<S: AsMultiSpan, T: Into<String>>(
spans: S,
level: DiagnosticLevel,
message: T
) -> Self
pub fn child<T: Into<String>>(self, level: DiagnosticLevel, message: T) -> Self
pub fn child_spanned<S: AsMultiSpan, T: Into<String>>(
self,
spans: S,
level: DiagnosticLevel,
message: T
) -> Self
sourceimpl Diagnostic
impl Diagnostic
pub fn nightly(self) -> NightlyDiagnostic
pub fn primitive(self) -> PrimitiveDiagnostic
pub fn emit(self)
pub fn root(&self) -> &Diagnostic
sourceimpl Diagnostic
impl Diagnostic
pub fn error<T: Into<String>>(self, message: T) -> Self
pub fn error_spanned<S: AsMultiSpan, T: Into<String>>(
self,
spans: S,
message: T
) -> Self
pub fn new_error<T: Into<String>>(message: T) -> Self
pub fn new_error_spanned<S: AsMultiSpan, T: Into<String>>(
spans: S,
message: T
) -> Self
sourceimpl Diagnostic
impl Diagnostic
pub fn warning<T: Into<String>>(self, message: T) -> Self
pub fn warning_spanned<S: AsMultiSpan, T: Into<String>>(
self,
spans: S,
message: T
) -> Self
pub fn new_warning<T: Into<String>>(message: T) -> Self
pub fn new_warning_spanned<S: AsMultiSpan, T: Into<String>>(
spans: S,
message: T
) -> Self
sourceimpl Diagnostic
impl Diagnostic
pub fn note<T: Into<String>>(self, message: T) -> Self
pub fn note_spanned<S: AsMultiSpan, T: Into<String>>(
self,
spans: S,
message: T
) -> Self
pub fn new_note<T: Into<String>>(message: T) -> Self
pub fn new_note_spanned<S: AsMultiSpan, T: Into<String>>(
spans: S,
message: T
) -> Self
sourceimpl Diagnostic
impl Diagnostic
pub fn help<T: Into<String>>(self, message: T) -> Self
pub fn help_spanned<S: AsMultiSpan, T: Into<String>>(
self,
spans: S,
message: T
) -> Self
pub fn new_help<T: Into<String>>(message: T) -> Self
pub fn new_help_spanned<S: AsMultiSpan, T: Into<String>>(
spans: S,
message: T
) -> Self
Trait Implementations
sourceimpl Clone for Diagnostic
impl Clone for Diagnostic
sourcefn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl !Send for Diagnostic
impl !Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more