pub struct ParserRegistry { /* private fields */ }Implementations§
Source§impl ParserRegistry
impl ParserRegistry
pub fn with_defaults() -> Self
pub fn with_default_stubs() -> Self
pub fn parser_for_extension( &self, extension: &str, ) -> Option<&dyn DocumentParser>
pub fn parse_path(&self, path: &Path, max_chars: usize) -> ParsedDocument
pub fn parse_bytes( &self, name: &str, bytes: &[u8], max_chars: usize, ) -> ParsedDocument
pub fn parse_path_deep( &self, path: &Path, max_chars: usize, limits: ArchiveLimits, ) -> ParsedDocument
pub fn parse_bytes_deep( &self, name: &str, bytes: &[u8], max_chars: usize, limits: ArchiveLimits, ) -> ParsedDocument
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ParserRegistry
impl !UnwindSafe for ParserRegistry
impl Forget for ParserRegistry
impl Freeze for ParserRegistry
impl Move for ParserRegistry
impl Send for ParserRegistry
impl Sync for ParserRegistry
impl Unpin for ParserRegistry
impl UnsafeUnpin for ParserRegistry
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