pub struct CodeBlock<'a> {
pub source: CowStr<'a>,
pub language: Option<CowStr<'a>>,
}
Expand description
A code block from a Markdown document’s Frontmatter
.
Fields§
§source: CowStr<'a>
The contents of the code block.
language: Option<CowStr<'a>>
The language of the code block, which is the identifier following the three backticks in a fenced Markdown code block.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CodeBlock<'a>
impl<'a> RefUnwindSafe for CodeBlock<'a>
impl<'a> Send for CodeBlock<'a>
impl<'a> Sync for CodeBlock<'a>
impl<'a> Unpin for CodeBlock<'a>
impl<'a> UnwindSafe for CodeBlock<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more