pub struct FlexibleExtractor { /* private fields */ }Expand description
Flexible content extractor with multiple strategies
Implementations§
Source§impl FlexibleExtractor
impl FlexibleExtractor
pub fn new() -> Self
pub fn with_debug(self) -> Self
pub fn standard_extraction_strategies() -> Vec<ExtractionStrategy>
Sourcepub fn extract_with_strategy(
&self,
text: &str,
strategy: &ExtractionStrategy,
) -> Option<String>
pub fn extract_with_strategy( &self, text: &str, strategy: &ExtractionStrategy, ) -> Option<String>
Extract content using specified strategy
Sourcepub fn extract_with_strategies(
&self,
text: &str,
strategies: &[ExtractionStrategy],
) -> Result<String, ParseError>
pub fn extract_with_strategies( &self, text: &str, strategies: &[ExtractionStrategy], ) -> Result<String, ParseError>
Try multiple extraction strategies in order
Trait Implementations§
Source§impl ContentExtractor for FlexibleExtractor
impl ContentExtractor for FlexibleExtractor
Auto Trait Implementations§
impl Freeze for FlexibleExtractor
impl RefUnwindSafe for FlexibleExtractor
impl Send for FlexibleExtractor
impl Sync for FlexibleExtractor
impl Unpin for FlexibleExtractor
impl UnwindSafe for FlexibleExtractor
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