Struct maman::Page
[−]
[src]
pub struct Page { pub url: Url, pub document: String, pub headers: BTreeMap<String, String>, pub urls: Vec<Url>, }
Fields
url: Url
document: String
headers: BTreeMap<String, String>
urls: Vec<Url>
Methods
impl Page
[src]
fn new(url: Url, document: String, headers: BTreeMap<String, String>) -> Self
fn to_job(&self) -> Job
fn as_object(&self) -> Value
Trait Implementations
impl TokenSink for Page
[src]
type Handle = ()
fn process_token(&mut self, token: Token) -> TokenSinkResult<()>
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