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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)