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: u32
Number of distinct operators
n2: u32
Number of distinct operands
capital_n1: u32
Total number of operators
capital_n2: u32
Total number of operands
vocabulary: u32
Program vocabulary
length: u32
Program length
calculated_length: f64
Calculated length
volume: f64
Volume
difficulty: f64
Difficulty
effort: f64
Effort
time: f64
Time required to program
bugs: f64
Number 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