[][src]Enum lsp_types::MarkedString

pub enum MarkedString {
    String(String),
    LanguageString(LanguageString),
}

The marked string is rendered:

  • as markdown if it is represented as a string
  • as code block of the given langauge if it is represented as a pair of a language and a value

The pair of a language and a value is an equivalent to markdown: ${language} ${value}

Variants

String(String)LanguageString(LanguageString)

Methods

impl MarkedString
[src]

pub fn from_markdown(markdown: String) -> MarkedString
[src]

pub fn from_language_code(language: String, code_block: String) -> MarkedString
[src]

Trait Implementations

impl Eq for MarkedString
[src]

impl PartialEq<MarkedString> for MarkedString
[src]

impl Clone for MarkedString
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MarkedString
[src]

impl Serialize for MarkedString
[src]

impl<'de> Deserialize<'de> for MarkedString
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]