Struct wasm_bindgen_backend::Diagnostic [−][src]
pub struct Diagnostic { /* fields omitted */ }Expand description
A struct representing a diagnostic to emit to the end-user as an error.
Implementations
Generate a Diagnostic from an informational message with no Span
Generate a Diagnostic from a Span and an informational message
Generate a Diagnostic from the span of any tokenizable object and a message
Attempt to generate a Diagnostic from a vector of other Diagnostic instances.
If the Vec is empty, returns Ok(()), otherwise returns the new Diagnostic
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
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more