pub struct Parser<'a> {
pub glob_path: &'a [&'a str],
pub required_files: &'a [&'a str],
pub regex: Regex,
}
Expand description
Parser for text files.
It is responsible for traversing the path specified with a glob pattern and parsing the contents of the files.
Fields§
§glob_path: &'a [&'a str]
Glob patterns to specify the files to parse.
required_files: &'a [&'a str]
Files to check during path traversal.
regex: Regex
Regular expression to use for parsing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'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