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§fn eq(&self, other: &MarkupKind) -> bool
fn eq(&self, other: &MarkupKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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