Trait StatefulExtractor

Source
pub trait StatefulExtractor {
    type Attr<'a>: Attributes;

    const RDF: bool;

    // Required methods
    fn add_triples<const N: usize>(&mut self, triples: [Triple; N]);
    fn state_mut(&mut self) -> &mut ExtractorState;
    fn state(&self) -> &ExtractorState;
    fn add_error(&mut self, err: FTMLError);
    fn set_document_title(&mut self, title: Box<str>);
    fn add_resource<T: Resourcable>(&mut self, t: &T) -> LazyDocRef<T>;
}
Available on crate feature full only.

Required Associated Constants§

Source

const RDF: bool

Available on crate feature rdf only.

Required Associated Types§

Required Methods§

Source

fn add_triples<const N: usize>(&mut self, triples: [Triple; N])

Available on crate feature rdf only.
Source

fn state_mut(&mut self) -> &mut ExtractorState

Source

fn state(&self) -> &ExtractorState

Source

fn add_error(&mut self, err: FTMLError)

Source

fn set_document_title(&mut self, title: Box<str>)

Source

fn add_resource<T: Resourcable>(&mut self, t: &T) -> LazyDocRef<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§