pub struct Complexity {
pub cyclomatic: f64,
pub cognitive: f64,
pub exits: f64,
pub args: f64,
pub functions: f64,
pub closures: f64,
pub coupling: Option<Coupling>,
pub maintainability: Option<Maintainability>,
pub loc: Option<Loc>,
pub halstead: Option<Halstead>,
}Expand description
Full complexity metrics for a node (fn/method/file/module). Computed by rust-code-analysis; absent when the node has no source or the file could not be parsed.
Fields§
§cyclomatic: f64§cognitive: f64§exits: f64§args: f64§functions: f64§closures: f64§coupling: Option<Coupling>§maintainability: Option<Maintainability>§loc: Option<Loc>§halstead: Option<Halstead>Trait Implementations§
Source§impl Clone for Complexity
impl Clone for Complexity
Source§fn clone(&self) -> Complexity
fn clone(&self) -> Complexity
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 Complexity
impl Debug for Complexity
Source§impl Default for Complexity
impl Default for Complexity
Source§fn default() -> Complexity
fn default() -> Complexity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Complexity
impl<'de> Deserialize<'de> for Complexity
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 Complexity
impl RefUnwindSafe for Complexity
impl Send for Complexity
impl Sync for Complexity
impl Unpin for Complexity
impl UnsafeUnpin for Complexity
impl UnwindSafe for Complexity
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