pub struct CompiledXpaths;Expand description
All pre-compiled XPath expression groups used in extraction.
Implementations§
Source§impl CompiledXpaths
impl CompiledXpaths
Sourcepub const BODY: &[&str]
pub const BODY: &[&str]
BODY_XPATH: Main content area candidates, tried in order (first match wins). 5 expressions from trafilatura xpaths.py lines 13-54.
Sourcepub const OVERALL_DISCARD: &[&str]
pub const OVERALL_DISCARD: &[&str]
OVERALL_DISCARD_XPATH: Elements to remove (navigation, footers, ads, etc.)
Sourcepub const PRECISION_DISCARD: &[&str]
pub const PRECISION_DISCARD: &[&str]
PRECISION_DISCARD_XPATH: Additional elements removed in precision mode.
Sourcepub const TEASER_DISCARD: &[&str]
pub const TEASER_DISCARD: &[&str]
TEASER_DISCARD_XPATH: Teaser elements removed except in recall mode.
Auto Trait Implementations§
impl Freeze for CompiledXpaths
impl RefUnwindSafe for CompiledXpaths
impl Send for CompiledXpaths
impl Sync for CompiledXpaths
impl Unpin for CompiledXpaths
impl UnsafeUnpin for CompiledXpaths
impl UnwindSafe for CompiledXpaths
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