[][src]Struct clang::diagnostic::DiagnosticFormatter

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

Builds formatted strings from diagnostics.

Implementations

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

pub fn source_location(
    &mut self,
    source_location: bool
) -> &mut DiagnosticFormatter<'tu>
[src]

Sets whether the diagnostic text will be prefixed by the file and line of the source location the diagnostic indicates. This prefix may also contain column and/or source range information.

pub fn column(&mut self, column: bool) -> &mut DiagnosticFormatter<'tu>[src]

Sets whether the column will be included in the source location prefix.

pub fn source_ranges(
    &mut self,
    source_ranges: bool
) -> &mut DiagnosticFormatter<'tu>
[src]

Sets whether the source ranges will be included to the source location prefix.

pub fn option(&mut self, option: bool) -> &mut DiagnosticFormatter<'tu>[src]

Sets whether the option associated with the diagnostic (e.g., -Wconversion) will be placed in brackets after the diagnostic text if there is such an option.

pub fn category_id(
    &mut self,
    category_id: bool
) -> &mut DiagnosticFormatter<'tu>
[src]

Sets whether the category number associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category number.

pub fn category_name(
    &mut self,
    category_name: bool
) -> &mut DiagnosticFormatter<'tu>
[src]

Sets whether the category name associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category name.

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

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

Returns a formatted string.

Trait Implementations

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

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

Auto Trait Implementations

impl<'tu> RefUnwindSafe for DiagnosticFormatter<'tu>

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

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

impl<'tu> Unpin for DiagnosticFormatter<'tu>

impl<'tu> UnwindSafe for DiagnosticFormatter<'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, 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.