Struct lsp::types::MarkedString [−][src]
MarkedString can be used to render human readable text. It is either a markdown string or a code-block that provides a language and a code snippet. The language identifier is semantically equal to the optional language identifier in fenced code blocks in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting
The pair of a language and a value is an equivalent to markdown:
${value}
Note that markdown strings will be sanitized - that means html will be escaped. @deprecated use MarkupContent instead.
Fields
language: String
value: String
Methods
impl MarkedString
[src]
impl MarkedString
pub fn from_plain_text(plain_text: String) -> String
[src]
pub fn from_plain_text(plain_text: String) -> String
Creates a marked string from plain text.
@param plainText The plain text.
Trait Implementations
impl Debug for MarkedString
[src]
impl Debug for MarkedString
Auto Trait Implementations
impl Send for MarkedString
impl Send for MarkedString
impl Sync for MarkedString
impl Sync for MarkedString