Enum lsp2::CompletionResponse
pub enum CompletionResponse {
Array(Vec<CompletionItem, Global>),
List(CompletionList),
}
Variants§
Array(Vec<CompletionItem, Global>)
List(CompletionList)
Trait Implementations§
§impl Clone for CompletionResponse
impl Clone for CompletionResponse
§fn clone(&self) -> CompletionResponse
fn clone(&self) -> CompletionResponse
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 CompletionResponse
impl Debug for CompletionResponse
§impl<'de> Deserialize<'de> for CompletionResponse
impl<'de> Deserialize<'de> for CompletionResponse
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionResponse, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<CompletionList> for CompletionResponse
impl From<CompletionList> for CompletionResponse
§fn from(list: CompletionList) -> CompletionResponse
fn from(list: CompletionList) -> CompletionResponse
Converts to this type from the input type.
§impl From<Vec<CompletionItem, Global>> for CompletionResponse
impl From<Vec<CompletionItem, Global>> for CompletionResponse
§fn from(items: Vec<CompletionItem, Global>) -> CompletionResponse
fn from(items: Vec<CompletionItem, Global>) -> CompletionResponse
Converts to this type from the input type.
§impl PartialEq<CompletionResponse> for CompletionResponse
impl PartialEq<CompletionResponse> for CompletionResponse
§fn eq(&self, other: &CompletionResponse) -> bool
fn eq(&self, other: &CompletionResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionResponse
impl Serialize for CompletionResponse
§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 CompletionResponse
Auto Trait Implementations§
impl RefUnwindSafe for CompletionResponse
impl Send for CompletionResponse
impl Sync for CompletionResponse
impl Unpin for CompletionResponse
impl UnwindSafe for CompletionResponse
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