pub enum RenameOutcome {
Edits {
per_file: Vec<(Uri, Vec<TextEdit>)>,
new_name: String,
},
NoProvider,
NotRenameable {
reason: String,
},
Empty,
}Expand description
Outcome of a :rename request. The success arm
pre-flattens the WorkspaceEdit into a per-file
Vec<TextEdit> map so the App-side apply path doesn’t have
to walk lsp-types’ enum shapes. NoProvider echoes when no
attached server advertises renameProvider; NotRenameable
when prepareRename refused; Empty when the rename
succeeded but the server returned no edits.
Variants§
Edits
Fields
NoProvider
NotRenameable
Empty
Trait Implementations§
Source§impl Clone for RenameOutcome
impl Clone for RenameOutcome
Source§fn clone(&self) -> RenameOutcome
fn clone(&self) -> RenameOutcome
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RenameOutcome
impl Freeze for RenameOutcome
impl Send for RenameOutcome
impl Sync for RenameOutcome
impl Unpin for RenameOutcome
impl UnsafeUnpin for RenameOutcome
impl UnwindSafe for RenameOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more