Enum lsp_types::MarkupKind
source · pub enum MarkupKind {
PlainText,
Markdown,
}
Expand description
Describes the content type that a client supports in various
result literals like Hover
, ParameterInfo
or CompletionItem
.
Please note that MarkupKinds
must not start with a $
. This kinds
are reserved for internal usage.
Variants§
PlainText
Plain text is supported as a content format
Markdown
Markdown is supported as a content format
Trait Implementations§
source§impl Clone for MarkupKind
impl Clone for MarkupKind
source§fn clone(&self) -> MarkupKind
fn clone(&self) -> MarkupKind
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 moresource§impl Debug for MarkupKind
impl Debug for MarkupKind
source§impl<'de> Deserialize<'de> for MarkupKind
impl<'de> Deserialize<'de> for MarkupKind
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
source§impl PartialEq for MarkupKind
impl PartialEq for MarkupKind
source§impl Serialize for MarkupKind
impl Serialize for MarkupKind
impl Eq for MarkupKind
impl StructuralPartialEq for MarkupKind
Auto Trait Implementations§
impl Freeze for MarkupKind
impl RefUnwindSafe for MarkupKind
impl Send for MarkupKind
impl Sync for MarkupKind
impl Unpin for MarkupKind
impl UnwindSafe for MarkupKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.