pub struct ParsedFile {
pub frontmatter_yaml: String,
pub body: String,
}Expand description
The result of splitting a raw file into its frontmatter block and body.
body is the verbatim remainder after the closing --- fence — the writer
preserves it byte-for-byte so operator edits are never reflowed.
Fields§
§frontmatter_yaml: StringThe raw frontmatter YAML (between the fences, exclusive of them).
body: StringThe verbatim body (everything after the closing ---).
Trait Implementations§
Source§impl Clone for ParsedFile
impl Clone for ParsedFile
Source§fn clone(&self) -> ParsedFile
fn clone(&self) -> ParsedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedFile
impl Debug for ParsedFile
Source§impl PartialEq for ParsedFile
impl PartialEq for ParsedFile
Source§fn eq(&self, other: &ParsedFile) -> bool
fn eq(&self, other: &ParsedFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParsedFile
impl StructuralPartialEq for ParsedFile
Auto Trait Implementations§
impl Freeze for ParsedFile
impl RefUnwindSafe for ParsedFile
impl Send for ParsedFile
impl Sync for ParsedFile
impl Unpin for ParsedFile
impl UnsafeUnpin for ParsedFile
impl UnwindSafe for ParsedFile
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.