pub enum Operation {
RenameSymbol,
RenameRelatedSymbols,
ApplyEditPlan,
RollbackLastApply,
ChangeSignature,
EditSymbol,
BulkReplace,
OrganizeImports,
MoveFile,
MoveSymbol,
DeleteReadiness,
}Expand description
A refactor operation, resolved from a tool name the contract declares.
Variants§
RenameSymbol
RenameRelatedSymbols
ApplyEditPlan
RollbackLastApply
ChangeSignature
EditSymbol
BulkReplace
OrganizeImports
MoveFile
MoveSymbol
DeleteReadiness
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Resolves a tool name, or None when the contract does not declare it.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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