pub struct Cyclomatic {
pub sum: u64,
pub value: u64,
pub average: f64,
pub min: u64,
pub max: u64,
pub modified: CyclomaticModified,
}Expand description
Wire form of the Cyclomatic metric.
Fields§
§sum: u64Cyclomatic-complexity sum across the space.
value: u64This space’s own cyclomatic complexity, excluding nested
function/closure spaces. Equals sum only at a leaf
space; at an interior space the sum rolls up descendants while
this stays the per-space scalar the CLI thresholds against
(#958). #[serde(default)] so pre-#958 JSON still deserializes.
average: f64Average cyclomatic complexity per function.
min: u64Minimum cyclomatic complexity in a single function.
max: u64Maximum cyclomatic complexity in a single function.
modified: CyclomaticModifiedThe modified-cyclomatic projection.
Trait Implementations§
Source§impl Clone for Cyclomatic
impl Clone for Cyclomatic
Source§fn clone(&self) -> Cyclomatic
fn clone(&self) -> Cyclomatic
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 Cyclomatic
impl Debug for Cyclomatic
Source§impl<'de> Deserialize<'de> for Cyclomatic
impl<'de> Deserialize<'de> for Cyclomatic
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 From<&Stats> for Cyclomatic
impl From<&Stats> for Cyclomatic
Source§impl PartialEq for Cyclomatic
impl PartialEq for Cyclomatic
Source§fn eq(&self, other: &Cyclomatic) -> bool
fn eq(&self, other: &Cyclomatic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Cyclomatic
impl Serialize for Cyclomatic
impl StructuralPartialEq for Cyclomatic
Auto Trait Implementations§
impl Freeze for Cyclomatic
impl RefUnwindSafe for Cyclomatic
impl Send for Cyclomatic
impl Sync for Cyclomatic
impl Unpin for Cyclomatic
impl UnsafeUnpin for Cyclomatic
impl UnwindSafe for Cyclomatic
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