pub struct SafetyChecker;Expand description
Validates safety of refactoring operations
Implementations§
Source§impl SafetyChecker
impl SafetyChecker
Sourcepub fn check(refactoring: &Refactoring) -> Result<ValidationResult>
pub fn check(refactoring: &Refactoring) -> Result<ValidationResult>
Check if a refactoring is safe to apply
Sourcepub fn validate_changes(original: &str, new: &str) -> Result<ValidationResult>
pub fn validate_changes(original: &str, new: &str) -> Result<ValidationResult>
Validate that changes don’t break the code
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SafetyChecker
impl RefUnwindSafe for SafetyChecker
impl Send for SafetyChecker
impl Sync for SafetyChecker
impl Unpin for SafetyChecker
impl UnwindSafe for SafetyChecker
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