pub struct BatchComplexityStats {
pub count: usize,
pub avg_nodes: f64,
pub avg_depth: f64,
pub max_nodes: usize,
pub max_depth: usize,
pub avg_score: f64,
pub above_threshold_count: usize,
}Expand description
Aggregate complexity statistics for a batch of expressions.
Fields§
§count: usize§avg_nodes: f64§avg_depth: f64§max_nodes: usize§max_depth: usize§avg_score: f64§above_threshold_count: usizeImplementations§
Source§impl BatchComplexityStats
impl BatchComplexityStats
Sourcepub fn from_exprs(exprs: &[TLExpr], thresholds: &ComplexityThresholds) -> Self
pub fn from_exprs(exprs: &[TLExpr], thresholds: &ComplexityThresholds) -> Self
Compute aggregate stats for a slice of expressions.
Trait Implementations§
Source§impl Clone for BatchComplexityStats
impl Clone for BatchComplexityStats
Source§fn clone(&self) -> BatchComplexityStats
fn clone(&self) -> BatchComplexityStats
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 BatchComplexityStats
impl Debug for BatchComplexityStats
Auto Trait Implementations§
impl Freeze for BatchComplexityStats
impl RefUnwindSafe for BatchComplexityStats
impl Send for BatchComplexityStats
impl Sync for BatchComplexityStats
impl Unpin for BatchComplexityStats
impl UnsafeUnpin for BatchComplexityStats
impl UnwindSafe for BatchComplexityStats
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