Struct maman::Page [] [src]

pub struct Page {
    pub url: String,
    pub document: String,
    pub headers: BTreeMap<StringString>,
    pub urls: Vec<String>,
    pub extra: Vec<String>,
}

Fields

url: String document: String headers: BTreeMap<StringString> urls: Vec<String> extra: Vec<String>

Methods

impl Page
[src]

fn new(url: String, document: String, headers: BTreeMap<StringString>, extra: Vec<String>) -> Self

fn to_job(&self) -> Job

fn as_object(&self) -> Value

Trait Implementations

impl TokenSink for Page
[src]

fn process_token(&mut self, token: Token)

Process a token.

fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool

Used in the markup declaration open state. By default, this always returns false and thus all CDATA sections are tokenized as bogus comments. https://html.spec.whatwg.org/multipage/#markup-declaration-open-state Read more

fn query_state_change(&mut self) -> Option<State>

The tokenizer will call this after emitting any tag. This allows the tree builder to change the tokenizer's state. By default no state changes occur. Read more