[−][src]Struct clang::diagnostic::Diagnostic
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]
fn clone(&self) -> Diagnostic<'tu>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,