pub struct Parsed {
pub fm: Frontmatter,
pub fm_block: String,
pub fm_span: (usize, usize),
pub body_start_line: usize,
pub parseable: bool,
}Expand description
A concept’s parsed frontmatter and where it sits in the file.
Fields§
§fm: FrontmatterThe extracted, recognised fields.
fm_block: StringThe inner YAML text between the --- fences (fences excluded).
fm_span: (usize, usize)1-based inclusive line span of the whole block, fences included.
body_start_line: usize1-based line where the Markdown body begins (after the closing fence).
parseable: boolWhether the inner block parses as YAML (per yaml-edit).
Trait Implementations§
impl Eq for Parsed
impl StructuralPartialEq for Parsed
Auto Trait Implementations§
impl Freeze for Parsed
impl RefUnwindSafe for Parsed
impl Send for Parsed
impl Sync for Parsed
impl Unpin for Parsed
impl UnsafeUnpin for Parsed
impl UnwindSafe for Parsed
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