Struct proc_macro::Diagnostic [] [src]

pub struct Diagnostic { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (proc_macro #38356)
[]

A structure representing a diagnostic message and associated children messages.

Methods

impl Diagnostic
[src]
[]

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Create a new diagnostic with the given level and message.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Create a new diagnostic with the given level and message pointing to the given span.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Add a new child diagnostic message to self with the level identified by this methods name with the given span and message.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Add 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 #38356)

Add a new child diagnostic message to self with the level identified by this methods name with the given span and message.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Add 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 #38356)

Add a new child diagnostic message to self with the level identified by this methods name with the given span and message.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Add 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 #38356)

Add a new child diagnostic message to self with the level identified by this methods name with the given span and message.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Add 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 #38356)

Returns the diagnostic level for self.

[]

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Emit the diagnostic.

Trait Implementations

impl Clone for Diagnostic
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Debug for Diagnostic
[src]
[+]

[]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Diagnostic

impl !Sync for Diagnostic