pub struct DescriptorReader { /* private fields */ }Implementations§
Source§impl DescriptorReader
impl DescriptorReader
pub fn new(targets: &[impl AsRef<Path>]) -> Self
pub fn with_validation(self, validate: bool) -> Self
pub fn following_links(self) -> Self
pub fn with_document_handler(self, handler: DocumentHandler) -> Self
pub fn with_descriptor_type(self, descriptor_type: &str) -> Self
pub fn with_persistence(self, path: impl Into<PathBuf>) -> Self
pub fn processed_files(&self) -> &ProcessedFiles
pub fn set_processed_files(&mut self, processed: ProcessedFiles)
pub fn register_read_listener( &mut self, listener: impl FnMut(&Path) + Send + 'static, )
pub fn register_skip_listener( &mut self, listener: impl FnMut(&Path, &SkipReason) + Send + 'static, )
pub fn read_all(&mut self) -> Result<Vec<ParsedFile>>
pub fn read_each( &mut self, handler: impl FnMut(ParsedFile) -> ControlFlow<()>, ) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for DescriptorReader
impl !Sync for DescriptorReader
impl !UnwindSafe for DescriptorReader
impl Freeze for DescriptorReader
impl Send for DescriptorReader
impl Unpin for DescriptorReader
impl UnsafeUnpin for DescriptorReader
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