[−][src]Struct clang::diagnostic::DiagnosticFormatter
Builds formatted strings from diagnostics.
Implementations
impl<'tu> DiagnosticFormatter<'tu>
[src]
pub fn source_location(
&mut self,
source_location: bool
) -> &mut DiagnosticFormatter<'tu>
[src]
&mut self,
source_location: bool
) -> &mut DiagnosticFormatter<'tu>
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]
&mut self,
source_ranges: bool
) -> &mut DiagnosticFormatter<'tu>
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]
&mut self,
category_id: bool
) -> &mut DiagnosticFormatter<'tu>
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]
&mut self,
category_name: bool
) -> &mut DiagnosticFormatter<'tu>
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]
Trait Implementations
impl<'tu> Clone for DiagnosticFormatter<'tu>
[src]
fn clone(&self) -> DiagnosticFormatter<'tu>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,