Enum languageserver_types::MarkedString [−][src]
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]
impl MarkedString
pub fn from_markdown(markdown: String) -> MarkedString
[src]
pub fn from_markdown(markdown: String) -> MarkedString
pub fn from_language_code(language: String, code_block: String) -> MarkedString
[src]
pub fn from_language_code(language: String, code_block: String) -> MarkedString
Trait Implementations
impl Debug for MarkedString
[src]
impl Debug for MarkedString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for MarkedString
[src]
impl Eq for MarkedString
impl PartialEq for MarkedString
[src]
impl PartialEq for MarkedString
fn eq(&self, other: &MarkedString) -> bool
[src]
fn eq(&self, other: &MarkedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MarkedString) -> bool
[src]
fn ne(&self, other: &MarkedString) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for MarkedString
impl Send for MarkedString
impl Sync for MarkedString
impl Sync for MarkedString