pub struct RenameMutation {
pub symbol_id: SymbolId,
pub to: String,
}Expand description
Rename a symbol across the file
Note: symbol_id is required for O(1) lookup.
Fields§
§symbol_id: SymbolIdSymbolId - required for O(1) lookup
to: StringNew name to rename to
Implementations§
Trait Implementations§
Source§impl Clone for RenameMutation
impl Clone for RenameMutation
Source§fn clone(&self) -> RenameMutation
fn clone(&self) -> RenameMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenameMutation
impl Debug for RenameMutation
Source§impl Mutation for RenameMutation
impl Mutation for RenameMutation
Source§fn validate(&self, _file: &PureFile) -> ValidationResult
fn validate(&self, _file: &PureFile) -> ValidationResult
Validate the mutation before applying Read more
Source§fn mutation_type(&self) -> &'static str
fn mutation_type(&self) -> &'static str
Get the mutation type name
Source§fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
Check if this mutation can proceed with the given strategy
Source§impl ToSerializable for RenameMutation
impl ToSerializable for RenameMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for RenameMutation
impl RefUnwindSafe for RenameMutation
impl Send for RenameMutation
impl Sync for RenameMutation
impl Unpin for RenameMutation
impl UnsafeUnpin for RenameMutation
impl UnwindSafe for RenameMutation
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