pub enum EffortEstimate {
Low,
Medium,
High,
}Expand description
A ranked refactoring recommendation for a file.
§Priority Formula
priority = min(density, 1) × 30 + hotspot_boost × 25 + dead_code × 20 + fan_in_norm × 15 + fan_out_norm × 10Fan-in and fan-out normalization uses adaptive percentile-based thresholds (p95 of the project distribution, with floors) instead of fixed constants.
§Efficiency (default sort)
efficiency = priority / effort_numeric (Low=1, Medium=2, High=3)Surfaces quick wins: high-priority, low-effort targets rank first. Effort estimate for a refactoring target.
Variants§
Low
Small file, few functions, low fan-in: quick to address.
Medium
Moderate size or coupling: needs planning.
High
Large file, many functions, or high fan-in: significant effort.
Implementations§
Trait Implementations§
Source§impl Clone for EffortEstimate
impl Clone for EffortEstimate
Source§impl Debug for EffortEstimate
impl Debug for EffortEstimate
Source§impl<'de> Deserialize<'de> for EffortEstimate
impl<'de> Deserialize<'de> for EffortEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EffortEstimate
Source§impl PartialEq for EffortEstimate
impl PartialEq for EffortEstimate
Source§impl Serialize for EffortEstimate
impl Serialize for EffortEstimate
impl StructuralPartialEq for EffortEstimate
Auto Trait Implementations§
impl Freeze for EffortEstimate
impl RefUnwindSafe for EffortEstimate
impl Send for EffortEstimate
impl Sync for EffortEstimate
impl Unpin for EffortEstimate
impl UnsafeUnpin for EffortEstimate
impl UnwindSafe for EffortEstimate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.