Struct clang::FormatOptions
[−]
[src]
pub struct FormatOptions { pub source_location: bool, pub column: bool, pub source_ranges: bool, pub option: bool, pub category_id: bool, pub category_name: bool, }
A set of options that determines how a diagnostic is formatted.
Fields
source_location: bool
Indicates 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.
column: bool
Indicates whether the column will be included in the source location prefix.
source_ranges: bool
Indicates whether the source ranges will be included to the source location prefix.
option: bool
Indicates 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.
category_id: bool
Indicates whether the category number associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category number.
category_name: bool
Indicates whether the category name associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category name.
Trait Implementations
impl Hash for FormatOptions
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for FormatOptions
[src]
impl PartialEq for FormatOptions
[src]
fn eq(&self, __arg_0: &FormatOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FormatOptions) -> bool
This method tests for !=
.
impl Debug for FormatOptions
[src]
impl Clone for FormatOptions
[src]
fn clone(&self) -> FormatOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for FormatOptions
[src]
impl From<CXDiagnosticDisplayOptions> for FormatOptions
[src]
fn from(flags: CXDiagnosticDisplayOptions) -> FormatOptions
Performs the conversion.
impl Into<CXDiagnosticDisplayOptions> for FormatOptions
[src]
fn into(self) -> CXDiagnosticDisplayOptions
Performs the conversion.
impl Default for FormatOptions
[src]
fn default() -> FormatOptions
Returns the "default value" for a type. Read more