pub struct HalsteadMetrics {
pub n1: u32,
pub n2: u32,
pub capital_n1: u32,
pub capital_n2: u32,
pub vocabulary: u32,
pub length: u32,
pub calculated_length: f64,
pub volume: f64,
pub difficulty: f64,
pub effort: f64,
pub time: f64,
pub bugs: f64,
}Expand description
Halstead metrics for software complexity
Fields§
§n1: u32Number of distinct operators
n2: u32Number of distinct operands
capital_n1: u32Total number of operators
capital_n2: u32Total number of operands
vocabulary: u32Program vocabulary
length: u32Program length
calculated_length: f64Calculated length
volume: f64Volume
difficulty: f64Difficulty
effort: f64Effort
time: f64Time required to program
bugs: f64Number of delivered bugs
Trait Implementations§
Source§impl Clone for HalsteadMetrics
impl Clone for HalsteadMetrics
Source§fn clone(&self) -> HalsteadMetrics
fn clone(&self) -> HalsteadMetrics
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 HalsteadMetrics
impl RefUnwindSafe for HalsteadMetrics
impl Send for HalsteadMetrics
impl Sync for HalsteadMetrics
impl Unpin for HalsteadMetrics
impl UnwindSafe for HalsteadMetrics
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