pub struct ComplexityMetrics {
pub max_depth: usize,
pub avg_depth: f64,
pub node_count: usize,
pub leaf_count: usize,
pub branching_factor: f64,
pub cyclomatic_complexity: usize,
pub quantifier_depth: usize,
pub modal_depth: usize,
pub temporal_depth: usize,
}Expand description
Complexity metrics for an expression.
Fields§
§max_depth: usizeMaximum depth of the expression tree
avg_depth: f64Average depth of leaf nodes
node_count: usizeTotal number of nodes
leaf_count: usizeNumber of leaf nodes (predicates and constants)
branching_factor: f64Branching factor (average number of children per non-leaf node)
cyclomatic_complexity: usizeCyclomatic complexity (number of decision points + 1)
quantifier_depth: usizeQuantifier depth (maximum nesting level of quantifiers)
modal_depth: usizeModal depth (maximum nesting level of modal operators)
temporal_depth: usizeTemporal depth (maximum nesting level of temporal operators)
Implementations§
Trait Implementations§
Source§impl Clone for ComplexityMetrics
impl Clone for ComplexityMetrics
Source§fn clone(&self) -> ComplexityMetrics
fn clone(&self) -> ComplexityMetrics
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 moreSource§impl Debug for ComplexityMetrics
impl Debug for ComplexityMetrics
Source§impl PartialEq for ComplexityMetrics
impl PartialEq for ComplexityMetrics
impl StructuralPartialEq for ComplexityMetrics
Auto Trait Implementations§
impl Freeze for ComplexityMetrics
impl RefUnwindSafe for ComplexityMetrics
impl Send for ComplexityMetrics
impl Sync for ComplexityMetrics
impl Unpin for ComplexityMetrics
impl UnwindSafe for ComplexityMetrics
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