pub struct ComplexityComparison {
pub before: ExprComplexity,
pub after: ExprComplexity,
pub node_delta: i64,
pub depth_delta: i64,
pub score_delta: f64,
pub improved: bool,
}Expand description
Side-by-side comparison of complexity between two expressions.
Fields§
§before: ExprComplexity§after: ExprComplexity§node_delta: i64§depth_delta: i64§score_delta: f64§improved: booltrue when the after expression is simpler (lower score).
Implementations§
Trait Implementations§
Source§impl Clone for ComplexityComparison
impl Clone for ComplexityComparison
Source§fn clone(&self) -> ComplexityComparison
fn clone(&self) -> ComplexityComparison
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 ComplexityComparison
impl Debug for ComplexityComparison
Auto Trait Implementations§
impl Freeze for ComplexityComparison
impl RefUnwindSafe for ComplexityComparison
impl Send for ComplexityComparison
impl Sync for ComplexityComparison
impl Unpin for ComplexityComparison
impl UnsafeUnpin for ComplexityComparison
impl UnwindSafe for ComplexityComparison
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