Struct lsp_types::CodeActionKind [−][src]
pub struct CodeActionKind(_);
Implementations
Empty kind.
Base kind for quickfix actions: ‘quickfix’
Base kind for refactoring actions: ‘refactor’
Base kind for refactoring extraction actions: ‘refactor.extract’
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- …
Base kind for refactoring inline actions: ‘refactor.inline’
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- …
Base kind for refactoring rewrite actions: ‘refactor.rewrite’
Example rewrite actions:
- Convert JavaScript function to class
- Add or remove parameter
- Encapsulate field
- Make method static
- Move method to base class
- …
Base kind for source actions: source
Source code actions apply to the entire file.
Base kind for an organize imports source action: source.organizeImports
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CodeActionKindimpl Send for CodeActionKindimpl Sync for CodeActionKindimpl Unpin for CodeActionKindimpl UnwindSafe for CodeActionKindBlanket Implementations
Mutably borrows from an owned value. Read more