Struct ligen::proc_macro::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }
proc_macro_diagnostic
)Expand description
A structure representing a diagnostic message and associated children messages.
Implementations
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Creates a new diagnostic with the given level
and message
.
pub fn spanned<S, T>(spans: S, level: Level, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
pub fn spanned<S, T>(spans: S, level: Level, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
proc_macro_diagnostic
)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
T: Into<String>,
S: MultiSpan,
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
pub fn span_error<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
proc_macro_diagnostic
)Adds a new child diagnostic message to self
with the level
identified by this method’s name with the given spans
and
message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)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
T: Into<String>,
S: MultiSpan,
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
pub fn span_warning<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
proc_macro_diagnostic
)Adds a new child diagnostic message to self
with the level
identified by this method’s name with the given spans
and
message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)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
T: Into<String>,
S: MultiSpan,
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
pub fn span_note<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
proc_macro_diagnostic
)Adds a new child diagnostic message to self
with the level
identified by this method’s name with the given spans
and
message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)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
T: Into<String>,
S: MultiSpan,
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
pub fn span_help<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
proc_macro_diagnostic
)Adds a new child diagnostic message to self
with the level
identified by this method’s name with the given spans
and
message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Adds a new child diagnostic message to self
with the level
identified by this method’s name with the given message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Returns the diagnostic level
for self
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Sets the level in self
to level
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Returns the message in self
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Sets the message in self
to message
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Returns the Span
s in self
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Sets the Span
s in self
to spans
.
🔬 This is a nightly-only experimental API. (proc_macro_diagnostic
)
proc_macro_diagnostic
)Returns an iterator over the children diagnostics of self
.
Trait Implementations
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
Mutably borrows from an owned value. Read more