Struct pulldown_cmark_frontmatter::Frontmatter
source · pub struct Frontmatter<'a> {
pub title: Option<String>,
pub code_block: Option<CodeBlock<'a>>,
}
Expand description
Metadata stored within a Markdown document
Fields§
§title: Option<String>
The top-level heading’s plain-text contents, if the document began with a top-level heading.
code_block: Option<CodeBlock<'a>>
The frontmatter code block, if detected.
Trait Implementations§
source§impl<'a> Clone for Frontmatter<'a>
impl<'a> Clone for Frontmatter<'a>
source§fn clone(&self) -> Frontmatter<'a>
fn clone(&self) -> Frontmatter<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for Frontmatter<'a>
impl<'a> RefUnwindSafe for Frontmatter<'a>
impl<'a> Send for Frontmatter<'a>
impl<'a> Sync for Frontmatter<'a>
impl<'a> Unpin for Frontmatter<'a>
impl<'a> UnwindSafe for Frontmatter<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)