pub struct FrontmatterParser {
pub file_filter: Option<GlobSet>,
}Expand description
Built-in frontmatter parser. Extracts YAML frontmatter as links and metadata.
Fields§
§file_filter: Option<GlobSet>File routing filter. None = receives all File nodes.
Trait Implementations§
Source§impl Parser for FrontmatterParser
impl Parser for FrontmatterParser
Source§fn parse(&self, _path: &str, content: &str) -> ParseResult
fn parse(&self, _path: &str, content: &str) -> ParseResult
Parse a file’s content and return discovered links + optional metadata.
Source§fn parse_batch(&self, files: &[(&str, &str)]) -> HashMap<String, ParseResult>
fn parse_batch(&self, files: &[(&str, &str)]) -> HashMap<String, ParseResult>
Parse multiple files in one call. Default falls back to per-file parsing.
Custom parsers override this to spawn one process for all files.
Auto Trait Implementations§
impl Freeze for FrontmatterParser
impl RefUnwindSafe for FrontmatterParser
impl Send for FrontmatterParser
impl Sync for FrontmatterParser
impl Unpin for FrontmatterParser
impl UnsafeUnpin for FrontmatterParser
impl UnwindSafe for FrontmatterParser
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