pub struct TextExtractor { /* private fields */ }Expand description
Text extractor
Implementations§
Source§impl TextExtractor
impl TextExtractor
Sourcepub fn with_chunking(self, enabled: bool, chunk_size: usize) -> Self
pub fn with_chunking(self, enabled: bool, chunk_size: usize) -> Self
Configure segmentation
Sourcepub fn extract(&self, html: &str) -> ExtractedText
pub fn extract(&self, html: &str) -> ExtractedText
Extract the main text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextExtractor
impl RefUnwindSafe for TextExtractor
impl Send for TextExtractor
impl Sync for TextExtractor
impl Unpin for TextExtractor
impl UnwindSafe for TextExtractor
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