pub struct ComplexityRecord {
pub function_name: String,
pub ast_node_count: usize,
pub start_line: usize,
pub truncated: bool,
}Expand description
A record produced by detect_complex_functions.
Fields§
§function_name: StringName of the function.
ast_node_count: usizeNumber of AST nodes inside the function body (via AstChild edges).
start_line: usizeStarting line of the function in source.
truncated: boolWhether the count was truncated at the per‑function node limit.
Trait Implementations§
Source§impl Clone for ComplexityRecord
impl Clone for ComplexityRecord
Source§fn clone(&self) -> ComplexityRecord
fn clone(&self) -> ComplexityRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComplexityRecord
impl RefUnwindSafe for ComplexityRecord
impl Send for ComplexityRecord
impl Sync for ComplexityRecord
impl Unpin for ComplexityRecord
impl UnsafeUnpin for ComplexityRecord
impl UnwindSafe for ComplexityRecord
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