pub struct MarkdownWorkspaceScan<'a> { /* private fields */ }Expand description
A complete, configured Markdown workspace scan.
This owns the selection policy shared by full scans and incremental file events: standard Markdown extensions, explicit nonstandard file includes, include filtering, excludes, ignore files, and optional vendor-directory pruning. Adapters choose the options; they do not reconstruct the policy.
Implementations§
Source§impl<'a> MarkdownWorkspaceScan<'a>
impl<'a> MarkdownWorkspaceScan<'a>
pub fn new( options: &'a MarkdownWalkOptions, includes: &'a [String], excludes: &'a ExcludeMatchers, ) -> Self
Sourcepub fn collect(&self, roots: &[PathBuf]) -> Vec<PathBuf>
pub fn collect(&self, roots: &[PathBuf]) -> Vec<PathBuf>
Collect all selected files under roots.
Sourcepub fn path_is_ignored(&self, roots: &[PathBuf], path: &Path) -> bool
pub fn path_is_ignored(&self, roots: &[PathBuf], path: &Path) -> bool
Whether an incremental file event would be absent from a full scan.
Auto Trait Implementations§
impl<'a> Freeze for MarkdownWorkspaceScan<'a>
impl<'a> RefUnwindSafe for MarkdownWorkspaceScan<'a>
impl<'a> Send for MarkdownWorkspaceScan<'a>
impl<'a> Sync for MarkdownWorkspaceScan<'a>
impl<'a> Unpin for MarkdownWorkspaceScan<'a>
impl<'a> UnsafeUnpin for MarkdownWorkspaceScan<'a>
impl<'a> UnwindSafe for MarkdownWorkspaceScan<'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