Struct SyntaxHighlightMeta
#[non_exhaustive]
pub struct SyntaxHighlightMeta<'a> { pub lang: &'a str, pub meta: &'a str, pub code: &'a str }
Information about a code block given to the adapter implementation.
Fields
lang: &'a strName of the programming language (the first token of the info string).
meta: &'a strThe remaining info string after the language token, trimmed.
code: &'a strThe source code to be syntax highlighted.
Implementations
impl<'a> SyntaxHighlightMeta<'a>
fn new(lang: &'a str, meta: &'a str, code: &'a str) -> SelfCreate a new
SyntaxHighlightMeta.
Trait Implementations
impl<'a> Clone for SyntaxHighlightMeta<'a>
fn clone(&self) -> Self
impl<'a> Debug for SyntaxHighlightMeta<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result