Struct proc_macro::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }Expand description
A structure representing a diagnostic message and associated children messages.
Implementations
Creates a new diagnostic with the given level and message.
pub fn spanned<S, T>(spans: S, level: Level, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]
pub fn spanned<S, T>(spans: S, level: Level, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]Creates a new diagnostic with the given level and message pointing to
the given set of spans.
pub fn span_error<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]
pub fn span_error<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]Adds a new child diagnostic message to self with the level
identified by this method’s name with the given spans and
message.
Adds a new child diagnostic message to self with the level
identified by this method’s name with the given message.
pub fn span_warning<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]
pub fn span_warning<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]Adds a new child diagnostic message to self with the level
identified by this method’s name with the given spans and
message.
Adds a new child diagnostic message to self with the level
identified by this method’s name with the given message.
pub fn span_note<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]
pub fn span_note<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]Adds a new child diagnostic message to self with the level
identified by this method’s name with the given spans and
message.
Adds a new child diagnostic message to self with the level
identified by this method’s name with the given message.
pub fn span_help<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]
pub fn span_help<S, T>(self, spans: S, message: T) -> Diagnostic where
S: MultiSpan,
T: Into<String>, [src]Adds a new child diagnostic message to self with the level
identified by this method’s name with the given spans and
message.
Adds a new child diagnostic message to self with the level
identified by this method’s name with the given message.
Returns the diagnostic level for self.
Sets the level in self to level.
Returns the message in self.
Sets the message in self to message.
Sets the Spans in self to spans.
Returns an iterator over the children diagnostics of self.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Diagnosticimpl !Send for Diagnosticimpl !Sync for Diagnosticimpl Unpin for Diagnosticimpl UnwindSafe for DiagnosticBlanket Implementations
Mutably borrows from an owned value. Read more