pub struct ContentExtractor { /* private fields */ }Implementations§
Source§impl ContentExtractor
impl ContentExtractor
pub fn new(config: ExtractorConfig) -> Self
Sourcepub fn extract(
&self,
raw: &RawHtml,
) -> Result<ExtractedContent, ExtractionError>
pub fn extract( &self, raw: &RawHtml, ) -> Result<ExtractedContent, ExtractionError>
RawHtml → ExtractedContent(純粋関数)
pub fn detect_spa_for( &self, raw: &RawHtml, ) -> Result<SpaDetection, ExtractionError>
Sourcepub fn detect_frames(&self, raw: &RawHtml) -> Vec<Url>
pub fn detect_frames(&self, raw: &RawHtml) -> Vec<Url>
frameset ページのフレーム URL 一覧を返す。空なら通常ページ。
Auto Trait Implementations§
impl Freeze for ContentExtractor
impl RefUnwindSafe for ContentExtractor
impl Send for ContentExtractor
impl Sync for ContentExtractor
impl Unpin for ContentExtractor
impl UnsafeUnpin for ContentExtractor
impl UnwindSafe for ContentExtractor
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