Enum lsp2::CodeActionOrCommand
pub enum CodeActionOrCommand {
Command(Command),
CodeAction(CodeAction),
}
Variants§
Command(Command)
CodeAction(CodeAction)
Trait Implementations§
§impl Clone for CodeActionOrCommand
impl Clone for CodeActionOrCommand
§fn clone(&self) -> CodeActionOrCommand
fn clone(&self) -> CodeActionOrCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for CodeActionOrCommand
impl Debug for CodeActionOrCommand
§impl<'de> Deserialize<'de> for CodeActionOrCommand
impl<'de> Deserialize<'de> for CodeActionOrCommand
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CodeActionOrCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CodeActionOrCommand, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<CodeAction> for CodeActionOrCommand
impl From<CodeAction> for CodeActionOrCommand
§fn from(action: CodeAction) -> CodeActionOrCommand
fn from(action: CodeAction) -> CodeActionOrCommand
Converts to this type from the input type.
§impl From<Command> for CodeActionOrCommand
impl From<Command> for CodeActionOrCommand
§fn from(command: Command) -> CodeActionOrCommand
fn from(command: Command) -> CodeActionOrCommand
Converts to this type from the input type.
§impl PartialEq<CodeActionOrCommand> for CodeActionOrCommand
impl PartialEq<CodeActionOrCommand> for CodeActionOrCommand
§fn eq(&self, other: &CodeActionOrCommand) -> bool
fn eq(&self, other: &CodeActionOrCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CodeActionOrCommand
impl Serialize for CodeActionOrCommand
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CodeActionOrCommand
Auto Trait Implementations§
impl RefUnwindSafe for CodeActionOrCommand
impl Send for CodeActionOrCommand
impl Sync for CodeActionOrCommand
impl Unpin for CodeActionOrCommand
impl UnwindSafe for CodeActionOrCommand
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