Struct lsp2::CompletionItemKind
pub struct CompletionItemKind(_);
Expand description
The kind of a completion entry.
Implementations§
§impl CompletionItemKind
impl CompletionItemKind
pub const TEXT: CompletionItemKind = CompletionItemKind(1)
pub const METHOD: CompletionItemKind = CompletionItemKind(2)
pub const FUNCTION: CompletionItemKind = CompletionItemKind(3)
pub const CONSTRUCTOR: CompletionItemKind = CompletionItemKind(4)
pub const FIELD: CompletionItemKind = CompletionItemKind(5)
pub const VARIABLE: CompletionItemKind = CompletionItemKind(6)
pub const CLASS: CompletionItemKind = CompletionItemKind(7)
pub const INTERFACE: CompletionItemKind = CompletionItemKind(8)
pub const MODULE: CompletionItemKind = CompletionItemKind(9)
pub const PROPERTY: CompletionItemKind = CompletionItemKind(10)
pub const UNIT: CompletionItemKind = CompletionItemKind(11)
pub const VALUE: CompletionItemKind = CompletionItemKind(12)
pub const ENUM: CompletionItemKind = CompletionItemKind(13)
pub const KEYWORD: CompletionItemKind = CompletionItemKind(14)
pub const SNIPPET: CompletionItemKind = CompletionItemKind(15)
pub const COLOR: CompletionItemKind = CompletionItemKind(16)
pub const FILE: CompletionItemKind = CompletionItemKind(17)
pub const REFERENCE: CompletionItemKind = CompletionItemKind(18)
pub const FOLDER: CompletionItemKind = CompletionItemKind(19)
pub const ENUM_MEMBER: CompletionItemKind = CompletionItemKind(20)
pub const CONSTANT: CompletionItemKind = CompletionItemKind(21)
pub const STRUCT: CompletionItemKind = CompletionItemKind(22)
pub const EVENT: CompletionItemKind = CompletionItemKind(23)
pub const OPERATOR: CompletionItemKind = CompletionItemKind(24)
pub const TYPE_PARAMETER: CompletionItemKind = CompletionItemKind(25)
Trait Implementations§
§impl Clone for CompletionItemKind
impl Clone for CompletionItemKind
§fn clone(&self) -> CompletionItemKind
fn clone(&self) -> CompletionItemKind
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 CompletionItemKind
impl Debug for CompletionItemKind
§impl<'de> Deserialize<'de> for CompletionItemKind
impl<'de> Deserialize<'de> for CompletionItemKind
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionItemKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionItemKind, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CompletionItemKind> for CompletionItemKind
impl PartialEq<CompletionItemKind> for CompletionItemKind
§fn eq(&self, other: &CompletionItemKind) -> bool
fn eq(&self, other: &CompletionItemKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionItemKind
impl Serialize for CompletionItemKind
§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 TryFrom<&str> for CompletionItemKind
impl TryFrom<&str> for CompletionItemKind
impl Copy for CompletionItemKind
impl Eq for CompletionItemKind
impl StructuralEq for CompletionItemKind
impl StructuralPartialEq for CompletionItemKind
Auto Trait Implementations§
impl RefUnwindSafe for CompletionItemKind
impl Send for CompletionItemKind
impl Sync for CompletionItemKind
impl Unpin for CompletionItemKind
impl UnwindSafe for CompletionItemKind
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.