Struct lsp_types::CodeActionKind
source · [−]pub struct CodeActionKind(_);
Implementations
sourceimpl CodeActionKind
impl CodeActionKind
sourcepub const EMPTY: CodeActionKind
pub const EMPTY: CodeActionKind
Empty kind.
sourcepub const QUICKFIX: CodeActionKind
pub const QUICKFIX: CodeActionKind
Base kind for quickfix actions: ‘quickfix’
sourcepub const REFACTOR: CodeActionKind
pub const REFACTOR: CodeActionKind
Base kind for refactoring actions: ‘refactor’
sourcepub const REFACTOR_EXTRACT: CodeActionKind
pub const REFACTOR_EXTRACT: CodeActionKind
Base kind for refactoring extraction actions: ‘refactor.extract’
Example extract actions:
- Extract method
- Extract function
- Extract variable
- Extract interface from class
- …
sourcepub const REFACTOR_INLINE: CodeActionKind
pub const REFACTOR_INLINE: CodeActionKind
Base kind for refactoring inline actions: ‘refactor.inline’
Example inline actions:
- Inline function
- Inline variable
- Inline constant
- …
sourcepub const REFACTOR_REWRITE: CodeActionKind
pub const REFACTOR_REWRITE: CodeActionKind
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
- …
sourcepub const SOURCE: CodeActionKind
pub const SOURCE: CodeActionKind
Base kind for source actions: source
Source code actions apply to the entire file.
sourcepub const SOURCE_ORGANIZE_IMPORTS: CodeActionKind
pub const SOURCE_ORGANIZE_IMPORTS: CodeActionKind
Base kind for an organize imports source action: source.organizeImports
pub const fn new(tag: &'static str) -> Self
pub fn as_str(&self) -> &str
Trait Implementations
sourceimpl Clone for CodeActionKind
impl Clone for CodeActionKind
sourcefn clone(&self) -> CodeActionKind
fn clone(&self) -> CodeActionKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CodeActionKind
impl Debug for CodeActionKind
sourceimpl<'de> Deserialize<'de> for CodeActionKind
impl<'de> Deserialize<'de> for CodeActionKind
sourcefn 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
sourceimpl From<&'static str> for CodeActionKind
impl From<&'static str> for CodeActionKind
sourceimpl From<String> for CodeActionKind
impl From<String> for CodeActionKind
sourceimpl Hash for CodeActionKind
impl Hash for CodeActionKind
sourceimpl PartialEq<CodeActionKind> for CodeActionKind
impl PartialEq<CodeActionKind> for CodeActionKind
sourcefn eq(&self, other: &CodeActionKind) -> bool
fn eq(&self, other: &CodeActionKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CodeActionKind) -> bool
fn ne(&self, other: &CodeActionKind) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CodeActionKind> for CodeActionKind
impl PartialOrd<CodeActionKind> for CodeActionKind
sourcefn partial_cmp(&self, other: &CodeActionKind) -> Option<Ordering>
fn partial_cmp(&self, other: &CodeActionKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for CodeActionKind
impl Serialize for CodeActionKind
impl Eq for CodeActionKind
impl StructuralEq for CodeActionKind
impl StructuralPartialEq for CodeActionKind
Auto Trait Implementations
impl RefUnwindSafe for CodeActionKind
impl Send for CodeActionKind
impl Sync for CodeActionKind
impl Unpin for CodeActionKind
impl UnwindSafe for CodeActionKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more