pub struct PureRename;Expand description
Rename operation for PureFile.
Implementations§
Source§impl PureRename
impl PureRename
Sourcepub fn apply(
file: &mut PureFile,
old_name: &str,
new_name: &str,
) -> PureRenameResult
pub fn apply( file: &mut PureFile, old_name: &str, new_name: &str, ) -> PureRenameResult
Rename all occurrences of a symbol in a PureFile.
This renames:
- Local variable definitions and uses
- Function definitions and calls
- Struct/enum definitions and uses
- Type references
Sourcepub fn rename_local_in_fn(
file: &mut PureFile,
fn_name: &str,
old_name: &str,
new_name: &str,
) -> PureRenameResult
pub fn rename_local_in_fn( file: &mut PureFile, fn_name: &str, old_name: &str, new_name: &str, ) -> PureRenameResult
Rename a local variable within a specific function.
Auto Trait Implementations§
impl Freeze for PureRename
impl RefUnwindSafe for PureRename
impl Send for PureRename
impl Sync for PureRename
impl Unpin for PureRename
impl UnsafeUnpin for PureRename
impl UnwindSafe for PureRename
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