Struct devise_core::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
.
Creates a new diagnostic with the given level
and message
pointing
to the given set of spans
.
pub fn spanned_child<S, T>(
self,
spans: S,
level: Level,
message: T
) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
pub fn spanned_child<S, T>(
self,
spans: S,
level: Level,
message: T
) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
Adds a new child diagnostic message to self
with the level
and the
given spans
and message
.
Adds a new child diagnostic message to self
with level
and the given
message
.
pub fn span_error<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
pub fn span_error<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
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
T: Into<String>,
S: MultiSpan,
pub fn span_warning<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
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
T: Into<String>,
S: MultiSpan,
pub fn span_note<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
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
T: Into<String>,
S: MultiSpan,
pub fn span_help<S, T>(self, spans: S, message: T) -> Diagnostic where
T: Into<String>,
S: MultiSpan,
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
.
Return the children diagnostics of self
.
Emit tokens, suitable for item contexts, to generate a comple-time
diagnostic corresponding to self
. On nightly, this directly emits the
error and returns an empty token stream.
Emit tokens, suitable for item contexts, to generate a comple-time
diagnostic corresponding to self
. On nightly, this directly emits the
error and returns default
.
Emit tokens, suitable for expression contexts, to generate a comple-time
diagnostic corresponding to self
. On nightly, this directly emits the
error and returns a ()
token stream.
Emit tokens, suitable for expressioon contexts, to generate a
comple-time diagnostic corresponding to self
. On nightly, this
directly emits the error and returns default
.
Trait Implementations
Performs the conversion.
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