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]

[src]
[]

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

Create a new diagnostic with the given level and message.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

🔬 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.

[src]
[]

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

Returns the diagnostic level for self.

[src]
[]

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

Emit the diagnostic.

Trait Implementations

impl Clone for Diagnostic
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Debug for Diagnostic
[src]

[src]
[]

Formats the value using the given formatter. Read more