pub struct CodeActionKind(pub String);Expand description
A set of predefined code action kinds
Tuple Fields§
§0: StringImplementations§
Source§impl CodeActionKind
impl CodeActionKind
pub const EMPTY: &'static str = ""
pub const QUICK_FIX: &'static str = "quickfix"
pub const REFACTOR: &'static str = "refactor"
pub const REFACTOR_EXTRACT: &'static str = "refactor.extract"
pub const REFACTOR_INLINE: &'static str = "refactor.inline"
pub const REFACTOR_MOVE: &'static str = "refactor.move"
pub const REFACTOR_REWRITE: &'static str = "refactor.rewrite"
pub const SOURCE: &'static str = "source"
pub const SOURCE_ORGANIZE_IMPORTS: &'static str = "source.organizeImports"
pub const SOURCE_FIX_ALL: &'static str = "source.fixAll"
pub const NOTEBOOK: &'static str = "notebook"
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
impl Eq for CodeActionKind
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 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