pub enum RefactoringCategory {
DuplicateCode,
ComplexMethod,
LongMethod,
TooManyParameters,
DeadCode,
Performance,
Naming,
Structure,
}Expand description
Categories of refactoring suggestions
Variants§
DuplicateCode
Code that appears in multiple places and should be extracted
ComplexMethod
Method with high cyclomatic complexity
LongMethod
Method with too many lines of code
TooManyParameters
Function with excessive parameter count
DeadCode
Unreachable or unused code
Performance
Inefficient code that could be optimized
Naming
Poorly named variables or functions
Structure
Structural issues with code organization
Trait Implementations§
Source§impl Clone for RefactoringCategory
impl Clone for RefactoringCategory
Source§fn clone(&self) -> RefactoringCategory
fn clone(&self) -> RefactoringCategory
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 RefactoringCategory
impl Debug for RefactoringCategory
Source§impl PartialEq for RefactoringCategory
impl PartialEq for RefactoringCategory
impl StructuralPartialEq for RefactoringCategory
Auto Trait Implementations§
impl Freeze for RefactoringCategory
impl RefUnwindSafe for RefactoringCategory
impl Send for RefactoringCategory
impl Sync for RefactoringCategory
impl Unpin for RefactoringCategory
impl UnsafeUnpin for RefactoringCategory
impl UnwindSafe for RefactoringCategory
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