pub struct RustFunctionComplexitySummary {
pub total_complexity: u32,
pub max_complexity: u32,
pub function_count: usize,
pub max_function_length: usize,
}Expand description
Summary of function-scoped Rust complexity for one source file.
Fields§
§total_complexity: u32Total cyclomatic complexity across all detected functions.
max_complexity: u32Maximum complexity of any single detected function.
function_count: usizeNumber of functions detected in the source file.
max_function_length: usizeMaximum detected function length in lines.
Trait Implementations§
Source§impl Clone for RustFunctionComplexitySummary
impl Clone for RustFunctionComplexitySummary
Source§fn clone(&self) -> RustFunctionComplexitySummary
fn clone(&self) -> RustFunctionComplexitySummary
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 moreimpl Copy for RustFunctionComplexitySummary
impl Eq for RustFunctionComplexitySummary
Source§impl PartialEq for RustFunctionComplexitySummary
impl PartialEq for RustFunctionComplexitySummary
Source§fn eq(&self, other: &RustFunctionComplexitySummary) -> bool
fn eq(&self, other: &RustFunctionComplexitySummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RustFunctionComplexitySummary
Auto Trait Implementations§
impl Freeze for RustFunctionComplexitySummary
impl RefUnwindSafe for RustFunctionComplexitySummary
impl Send for RustFunctionComplexitySummary
impl Sync for RustFunctionComplexitySummary
impl Unpin for RustFunctionComplexitySummary
impl UnsafeUnpin for RustFunctionComplexitySummary
impl UnwindSafe for RustFunctionComplexitySummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more