pub enum CodeActionKind {
QuickFix,
Refactor,
RefactorExtract,
RefactorInline,
RefactorRewrite,
Source,
SourceOrganizeImports,
Other(String),
}Expand description
Kind of code action
Variants§
QuickFix
Quick fix for diagnostics
Refactor
Refactoring action
RefactorExtract
Refactoring that extracts code
RefactorInline
Refactoring that inlines code
RefactorRewrite
Refactoring that rewrites code
Source
Source organization
SourceOrganizeImports
Organize imports
Other(String)
Other/unknown kind
Implementations§
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 (const: unstable) · 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<'de> Deserialize<'de> for CodeActionKind
impl<'de> Deserialize<'de> for CodeActionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CodeActionKind
impl Hash for CodeActionKind
Source§impl PartialEq for CodeActionKind
impl PartialEq for CodeActionKind
Source§fn eq(&self, other: &CodeActionKind) -> bool
fn eq(&self, other: &CodeActionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeActionKind
impl Serialize 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