pub struct Scanner { /* private fields */ }Implementations§
Source§impl Scanner
impl Scanner
pub fn new(config: Config, project_root: PathBuf) -> Self
Sourcepub fn collect_files(&self, target_path: &Path) -> Vec<PathBuf>
pub fn collect_files(&self, target_path: &Path) -> Vec<PathBuf>
Collect all files that should be processed
Sourcepub fn should_process(&self, file_path: &Path) -> Result<(), SkipReason>
pub fn should_process(&self, file_path: &Path) -> Result<(), SkipReason>
Check if a file should be processed or skipped
Sourcepub fn get_format(&self, file_path: &Path) -> Option<&str>
pub fn get_format(&self, file_path: &Path) -> Option<&str>
Get the comment format for a file
Auto Trait Implementations§
impl Freeze for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnsafeUnpin for Scanner
impl UnwindSafe for Scanner
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