pub struct RustRefactoringProvider;Expand description
Rust-specific refactoring provider
Implementations§
Source§impl RustRefactoringProvider
impl RustRefactoringProvider
Sourcepub fn apply_rust_rename(
code: &str,
old_name: &str,
new_name: &str,
) -> Result<String>
pub fn apply_rust_rename( code: &str, old_name: &str, new_name: &str, ) -> Result<String>
Apply a Rust-specific rename with word boundaries
Sourcepub fn has_unsafe_code(code: &str) -> bool
pub fn has_unsafe_code(code: &str) -> bool
Check for unsafe code
Sourcepub fn check_rust_patterns(code: &str) -> Vec<String>
pub fn check_rust_patterns(code: &str) -> Vec<String>
Check for common Rust patterns
Trait Implementations§
Source§impl Default for RustRefactoringProvider
impl Default for RustRefactoringProvider
Source§impl RefactoringProvider for RustRefactoringProvider
impl RefactoringProvider for RustRefactoringProvider
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 RustRefactoringProvider
impl RefUnwindSafe for RustRefactoringProvider
impl Send for RustRefactoringProvider
impl Sync for RustRefactoringProvider
impl Unpin for RustRefactoringProvider
impl UnwindSafe for RustRefactoringProvider
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