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§
Required Associated Types§
type Attr<'a>: Attributes
Required Methods§
fn add_triples<const N: usize>(&mut self, triples: [Triple; N])
Available on crate feature
rdf
only.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>
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.