pub struct DirectoryProcessor { /* private fields */ }Implementations§
Source§impl DirectoryProcessor
impl DirectoryProcessor
pub fn new( extensions: Vec<String>, excluded_files: Vec<String>, suppress_prompt: bool, output: String, force: bool, filters: Vec<Filter>, ) -> Self
pub fn run(&self, directory_path: &Path) -> Result<usize>
pub fn should_process_file(&self, path: &Path) -> bool
pub fn validate_output_file<R: BufRead, W: Write>( &self, output_path: String, force: bool, reader: &mut R, writer: &mut W, ) -> Result<bool>
Auto Trait Implementations§
impl Freeze for DirectoryProcessor
impl RefUnwindSafe for DirectoryProcessor
impl Send for DirectoryProcessor
impl Sync for DirectoryProcessor
impl Unpin for DirectoryProcessor
impl UnwindSafe for DirectoryProcessor
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