pub enum CodeActionKind {
QuickFix,
Refactor,
RefactorExtract,
RefactorInline,
RefactorRewrite,
Source,
SourceOrganizeImports,
SourceFixAll,
SourceModernize,
}Expand description
Kind of code action
Categorizes the type of code action to help editors organize and present actions to users appropriately.
Variants§
QuickFix
Quick fix for a diagnostic issue
Refactor
General refactoring operation
RefactorExtract
Extract code into a new construct
RefactorInline
Inline a construct into its usage sites
RefactorRewrite
Rewrite code using a different pattern
Source
Source code organization action
SourceOrganizeImports
Organize imports action
SourceFixAll
Fix all issues action
SourceModernize
Modernize Perl code action
Trait Implementations§
Source§impl Clone for CodeActionKind
impl Clone for CodeActionKind
Source§fn clone(&self) -> CodeActionKind
fn clone(&self) -> CodeActionKind
Returns a duplicate of the value. Read more
1.0.0 · 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 CodeActionKind
impl Debug for CodeActionKind
Source§impl PartialEq for CodeActionKind
impl PartialEq for CodeActionKind
impl Eq for CodeActionKind
impl StructuralPartialEq for CodeActionKind
Auto Trait Implementations§
impl Freeze for CodeActionKind
impl RefUnwindSafe for CodeActionKind
impl Send for CodeActionKind
impl Sync for CodeActionKind
impl Unpin for CodeActionKind
impl UnsafeUnpin for CodeActionKind
impl UnwindSafe for CodeActionKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.