pub struct PythonRefactoringProvider;Expand description
Python-specific refactoring provider
Implementations§
Source§impl PythonRefactoringProvider
impl PythonRefactoringProvider
Trait Implementations§
Source§impl Default for PythonRefactoringProvider
impl Default for PythonRefactoringProvider
Source§impl RefactoringProvider for PythonRefactoringProvider
impl RefactoringProvider for PythonRefactoringProvider
Source§fn analyze_refactoring(
&self,
_code: &str,
_language: &str,
refactoring_type: RefactoringType,
) -> Result<RefactoringAnalysis>
fn analyze_refactoring( &self, _code: &str, _language: &str, refactoring_type: RefactoringType, ) -> Result<RefactoringAnalysis>
Analyze a refactoring operation
Source§fn apply_refactoring(
&self,
code: &str,
_language: &str,
refactoring: &Refactoring,
) -> Result<String>
fn apply_refactoring( &self, code: &str, _language: &str, refactoring: &Refactoring, ) -> Result<String>
Apply a refactoring to code
Source§fn validate_refactoring(
&self,
original: &str,
refactored: &str,
_language: &str,
) -> Result<ValidationResult>
fn validate_refactoring( &self, original: &str, refactored: &str, _language: &str, ) -> Result<ValidationResult>
Validate refactored code
Auto Trait Implementations§
impl Freeze for PythonRefactoringProvider
impl RefUnwindSafe for PythonRefactoringProvider
impl Send for PythonRefactoringProvider
impl Sync for PythonRefactoringProvider
impl Unpin for PythonRefactoringProvider
impl UnwindSafe for PythonRefactoringProvider
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