pub struct LoopBodyComplexity {
pub let_count: usize,
pub app_count: usize,
pub ctor_count: usize,
pub case_count: usize,
pub max_case_depth: usize,
}Expand description
Measures the “complexity” of a loop body to guide hoisting aggressiveness.
Fields§
§let_count: usizeTotal number of let-bindings in the body.
app_count: usizeNumber of function application let-values.
ctor_count: usizeNumber of constructor let-values.
case_count: usizeNumber of case expressions in the body.
max_case_depth: usizeMaximum depth of nested case expressions.
Implementations§
Trait Implementations§
Source§impl Clone for LoopBodyComplexity
impl Clone for LoopBodyComplexity
Source§fn clone(&self) -> LoopBodyComplexity
fn clone(&self) -> LoopBodyComplexity
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 LoopBodyComplexity
impl Debug for LoopBodyComplexity
Source§impl Default for LoopBodyComplexity
impl Default for LoopBodyComplexity
Source§fn default() -> LoopBodyComplexity
fn default() -> LoopBodyComplexity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoopBodyComplexity
impl RefUnwindSafe for LoopBodyComplexity
impl Send for LoopBodyComplexity
impl Sync for LoopBodyComplexity
impl Unpin for LoopBodyComplexity
impl UnsafeUnpin for LoopBodyComplexity
impl UnwindSafe for LoopBodyComplexity
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