pub struct PlainTextParser;Expand description
Built-in parser for all common text, code, and config formats.
Handles UTF-8 files up to 1 MiB. Binary or oversized files are skipped.
Trait Implementations§
Source§impl DocumentParser for PlainTextParser
impl DocumentParser for PlainTextParser
Source§fn supported_extensions(&self) -> &[&str]
fn supported_extensions(&self) -> &[&str]
File extensions this parser handles (case-insensitive, no leading dot). Read more
Source§fn parse(&self, path: &Path) -> Result<String>
fn parse(&self, path: &Path) -> Result<String>
Extract plain-text content from
path. Read moreSource§fn max_file_size(&self) -> u64
fn max_file_size(&self) -> u64
Maximum file size (bytes) this parser accepts. Files larger than this
limit are silently skipped. Default: 10 MiB.
Auto Trait Implementations§
impl Freeze for PlainTextParser
impl RefUnwindSafe for PlainTextParser
impl Send for PlainTextParser
impl Sync for PlainTextParser
impl Unpin for PlainTextParser
impl UnsafeUnpin for PlainTextParser
impl UnwindSafe for PlainTextParser
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