pub struct AnalysisConfig {
pub cognitive_threshold: Option<u64>,
pub include_methods: bool,
}Expand description
User-configurable analysis parameters.
Pass to analyze_file_with_config or
analyze_source_with_config to
control threshold flagging and method inclusion. The Default impl
sets no threshold and includes methods.
Fields§
§cognitive_threshold: Option<u64>When set, populates exceeds_threshold on each FunctionMetrics.
include_methods: boolWhether to include class/struct methods (default: true).
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§fn clone(&self) -> AnalysisConfig
fn clone(&self) -> AnalysisConfig
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 AnalysisConfig
impl Debug for AnalysisConfig
Source§impl Default for AnalysisConfig
impl Default for AnalysisConfig
Source§impl<'de> Deserialize<'de> for AnalysisConfig
impl<'de> Deserialize<'de> for AnalysisConfig
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
Source§impl PartialEq for AnalysisConfig
impl PartialEq for AnalysisConfig
Source§fn eq(&self, other: &AnalysisConfig) -> bool
fn eq(&self, other: &AnalysisConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnalysisConfig
impl Serialize for AnalysisConfig
impl Eq for AnalysisConfig
impl StructuralPartialEq for AnalysisConfig
Auto Trait Implementations§
impl Freeze for AnalysisConfig
impl RefUnwindSafe for AnalysisConfig
impl Send for AnalysisConfig
impl Sync for AnalysisConfig
impl Unpin for AnalysisConfig
impl UnsafeUnpin for AnalysisConfig
impl UnwindSafe for AnalysisConfig
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