pub struct StyleAnalysis {Show 14 fields
pub language_family: String,
pub indent_style: IndentStyle,
pub tab_indented_lines: u32,
pub space2_indented_lines: u32,
pub space4_indented_lines: u32,
pub lines_over_80: u32,
pub lines_over_100: u32,
pub lines_over_120: u32,
pub max_line_length: u32,
pub total_lines: u32,
pub signals: Vec<StyleSignal>,
pub guide_scores: Vec<StyleGuideScore>,
pub dominant_guide: String,
pub dominant_score_pct: u8,
}Expand description
Generic style analysis result — works for any supported language.
Fields§
§language_family: StringLanguage family label, e.g. "C / C++", "Python".
indent_style: IndentStyle§tab_indented_lines: u32§space2_indented_lines: u32§space4_indented_lines: u32§lines_over_80: u32§lines_over_100: u32§lines_over_120: u32§max_line_length: u32§total_lines: u32§signals: Vec<StyleSignal>Language-specific observable signals for display.
guide_scores: Vec<StyleGuideScore>§dominant_guide: String§dominant_score_pct: u8Trait Implementations§
Source§impl Clone for StyleAnalysis
impl Clone for StyleAnalysis
Source§fn clone(&self) -> StyleAnalysis
fn clone(&self) -> StyleAnalysis
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 StyleAnalysis
impl Debug for StyleAnalysis
Source§impl Default for StyleAnalysis
impl Default for StyleAnalysis
Source§fn default() -> StyleAnalysis
fn default() -> StyleAnalysis
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StyleAnalysis
impl<'de> Deserialize<'de> for StyleAnalysis
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 StyleAnalysis
impl RefUnwindSafe for StyleAnalysis
impl Send for StyleAnalysis
impl Sync for StyleAnalysis
impl Unpin for StyleAnalysis
impl UnsafeUnpin for StyleAnalysis
impl UnwindSafe for StyleAnalysis
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