Struct clang::diagnostic::Diagnostic [] [src]

pub struct Diagnostic<'tu> { /* fields omitted */ }

A message from the compiler about an issue with a source file.

Methods

impl<'tu> Diagnostic<'tu>
[src]

Returns the severity of this diagnostic.

Returns the text of this diagnostic.

Returns the source location of this diagnostic.

Returns the source ranges of this diagnostic.

Returns the fix-its for this diagnostic.

Returns the child diagnostics of this diagnostic.

Returns a diagnostic formatter that builds a formatted string from this diagnostic.

Trait Implementations

impl<'tu> Copy for Diagnostic<'tu>
[src]

impl<'tu> Clone for Diagnostic<'tu>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tu> PartialOrd for Diagnostic<'tu>
[src]

Orders by severity.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'tu> Debug for Diagnostic<'tu>
[src]

Formats the value using the given formatter.

impl<'tu> Display for Diagnostic<'tu>
[src]

Formats the value using the given formatter.