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
sourceimpl Clone for MarkupKind
impl Clone for MarkupKind
sourcefn clone(&self) -> MarkupKind
fn clone(&self) -> MarkupKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MarkupKind
impl Debug for MarkupKind
sourceimpl<'de> Deserialize<'de> for MarkupKind
impl<'de> Deserialize<'de> for MarkupKind
sourcefn 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
sourceimpl PartialEq<MarkupKind> for MarkupKind
impl PartialEq<MarkupKind> for MarkupKind
sourceimpl Serialize for MarkupKind
impl Serialize for MarkupKind
impl Eq for MarkupKind
impl StructuralEq for MarkupKind
impl StructuralPartialEq for MarkupKind
Auto Trait Implementations
impl RefUnwindSafe for MarkupKind
impl Send for MarkupKind
impl Sync for MarkupKind
impl Unpin for MarkupKind
impl UnwindSafe for MarkupKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more