[][src]Struct lsp_types::CodeActionKind

pub struct CodeActionKind(_);

Implementations

impl CodeActionKind[src]

pub const EMPTY: CodeActionKind[src]

Empty kind.

pub const QUICKFIX: CodeActionKind[src]

Base kind for quickfix actions: 'quickfix'

pub const REFACTOR: CodeActionKind[src]

Base kind for refactoring actions: 'refactor'

pub const REFACTOR_EXTRACT: CodeActionKind[src]

Base kind for refactoring extraction actions: 'refactor.extract'

Example extract actions:

  • Extract method
  • Extract function
  • Extract variable
  • Extract interface from class
  • ...

pub const REFACTOR_INLINE: CodeActionKind[src]

Base kind for refactoring inline actions: 'refactor.inline'

Example inline actions:

  • Inline function
  • Inline variable
  • Inline constant
  • ...

pub const REFACTOR_REWRITE: CodeActionKind[src]

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
  • ...

pub const SOURCE: CodeActionKind[src]

Base kind for source actions: source

Source code actions apply to the entire file.

pub const SOURCE_ORGANIZE_IMPORTS: CodeActionKind[src]

Base kind for an organize imports source action: source.organizeImports

pub const fn new(tag: &'static str) -> Self[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl Clone for CodeActionKind[src]

impl Debug for CodeActionKind[src]

impl<'de> Deserialize<'de> for CodeActionKind[src]

impl Eq for CodeActionKind[src]

impl From<&'static str> for CodeActionKind[src]

impl From<String> for CodeActionKind[src]

impl Hash for CodeActionKind[src]

impl PartialEq<CodeActionKind> for CodeActionKind[src]

impl PartialOrd<CodeActionKind> for CodeActionKind[src]

impl Serialize for CodeActionKind[src]

impl StructuralEq for CodeActionKind[src]

impl StructuralPartialEq for CodeActionKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.