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

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

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

Implementations

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

pub fn get_severity(&self) -> Severity[src]

Returns the severity of this diagnostic.

pub fn get_text(&self) -> String[src]

Returns the text of this diagnostic.

pub fn get_location(&self) -> SourceLocation<'tu>[src]

Returns the source location of this diagnostic.

pub fn get_ranges(&self) -> Vec<SourceRange<'tu>>[src]

Returns the source ranges of this diagnostic.

pub fn get_fix_its(&self) -> Vec<FixIt<'tu>>[src]

Returns the fix-its for this diagnostic.

pub fn get_children(&self) -> Vec<Diagnostic>[src]

Returns the child diagnostics of this diagnostic.

pub fn formatter(&self) -> DiagnosticFormatter<'tu>[src]

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

Trait Implementations

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

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

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

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

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

Orders by severity.

Auto Trait Implementations

impl<'tu> RefUnwindSafe for Diagnostic<'tu>

impl<'tu> !Send for Diagnostic<'tu>

impl<'tu> !Sync for Diagnostic<'tu>

impl<'tu> Unpin for Diagnostic<'tu>

impl<'tu> UnwindSafe for Diagnostic<'tu>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.