pub struct SplitBackmatter<'a> {
pub before: &'a str,
pub backmatter: Option<&'a str>,
pub range: Option<Range>,
pub data: Object,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A document cut at its backmatter (§3.2).
Fields§
§before: &'a strThe text before the backmatter’s --- separator line, the front matter included; the whole text when there
is no backmatter.
backmatter: Option<&'a str>The backmatter as written: its separator line and every line after it, to the end; None when there is none.
range: Option<Range>Its lines (Reading::back_range): from the separator to the last line.
data: ObjectIts mapping (empty when there is none, or it is not a valid YAML mapping).
diagnostics: Vec<Diagnostic>The reader’s invalid-metadata diagnostics about it: an error here means data is not what the author wrote.
Trait Implementations§
Source§impl<'a> Clone for SplitBackmatter<'a>
impl<'a> Clone for SplitBackmatter<'a>
Source§impl<'a> Debug for SplitBackmatter<'a>
impl<'a> Debug for SplitBackmatter<'a>
Source§impl<'a> PartialEq for SplitBackmatter<'a>
impl<'a> PartialEq for SplitBackmatter<'a>
impl<'a> StructuralPartialEq for SplitBackmatter<'a>
Auto Trait Implementations§
impl<'a> Forget for SplitBackmatter<'a>
impl<'a> Freeze for SplitBackmatter<'a>
impl<'a> Move for SplitBackmatter<'a>
impl<'a> RefUnwindSafe for SplitBackmatter<'a>
impl<'a> Send for SplitBackmatter<'a>
impl<'a> Sync for SplitBackmatter<'a>
impl<'a> Unpin for SplitBackmatter<'a>
impl<'a> UnsafeUnpin for SplitBackmatter<'a>
impl<'a> UnwindSafe for SplitBackmatter<'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