pub struct CppStyleAnalysis {Show 21 fields
pub indent_style: IndentStyle,
pub brace_style: BraceStyle,
pub pointer_style: PointerStyle,
pub tab_indented_lines: u32,
pub space2_indented_lines: u32,
pub space4_indented_lines: u32,
pub allman_braces: u32,
pub attach_braces: u32,
pub ptr_with_type: u32,
pub ptr_with_name: u32,
pub ptr_middle: u32,
pub space_before_paren: u32,
pub no_space_before_paren: u32,
pub lines_over_80: u32,
pub lines_over_100: u32,
pub max_line_length: u32,
pub total_lines: u32,
pub has_pragma_once: bool,
pub guide_scores: Vec<StyleGuideScore>,
pub dominant_guide: String,
pub dominant_score_pct: u8,
}Expand description
Full lexical style analysis result for a single C/C++ file.
Fields§
§indent_style: IndentStyle§brace_style: BraceStyle§pointer_style: PointerStyle§tab_indented_lines: u32§space2_indented_lines: u32§space4_indented_lines: u32§allman_braces: u32§attach_braces: u32§ptr_with_type: u32§ptr_with_name: u32§ptr_middle: u32§space_before_paren: u32§no_space_before_paren: u32§lines_over_80: u32§lines_over_100: u32§max_line_length: u32§total_lines: u32§has_pragma_once: bool§guide_scores: Vec<StyleGuideScore>§dominant_guide: StringName of the guide with the highest adherence score.
dominant_score_pct: u8Adherence percentage of the dominant guide (0–100).
Trait Implementations§
Source§impl Clone for CppStyleAnalysis
impl Clone for CppStyleAnalysis
Source§fn clone(&self) -> CppStyleAnalysis
fn clone(&self) -> CppStyleAnalysis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CppStyleAnalysis
impl Debug for CppStyleAnalysis
Source§impl Default for CppStyleAnalysis
impl Default for CppStyleAnalysis
Source§fn default() -> CppStyleAnalysis
fn default() -> CppStyleAnalysis
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CppStyleAnalysis
impl<'de> Deserialize<'de> for CppStyleAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CppStyleAnalysis
impl RefUnwindSafe for CppStyleAnalysis
impl Send for CppStyleAnalysis
impl Sync for CppStyleAnalysis
impl Unpin for CppStyleAnalysis
impl UnsafeUnpin for CppStyleAnalysis
impl UnwindSafe for CppStyleAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more