pub fn rename(
        &self,
        position: FilePosition,
        new_name: &str,
    ) -> Cancelable<Result<SourceChange, RenameError>> {
        self.with_db(|db| references::rename::rename(db, position, new_name))
    }
/// Returns the edit required to rename reference at the position to the new
/// name.
Returns the edit required to rename reference at the position to the new
name.
Returns the edit required to rename reference at the position to the new name .
pub fn rename(
        &self,
        position: FilePosition,
        new_name: &str,
    ) -> Cancelable<Result<SourceChange, RenameError>> {
        self.with_db(|db| references::rename::rename(db, position, new_name))
    }
pub fn rename ( & self , position : FilePosition , new_name : & str , ) -> Cancelable < Result < SourceChange , RenameError > > { self . with_db ( | db | references :: rename :: rename ( db , position , new_name ) ) }
Returns the edit required to rename reference at the position to the new
name.
Returns the edit required to rename reference at the position to the new name .
&self
position
FilePosition
new_name
&str