Struct xml5ever::tokenizer::Doctype [] [src]

pub struct Doctype {
    pub name: Option<StrTendril>,
    pub public_id: Option<StrTendril>,
    pub system_id: Option<StrTendril>,
}

A DOCTYPE token. Doctype token in XML5 is rather limited for reasons, such as: security and simplicity. XML5 only supports declaring DTD with name, public identifier and system identifier

Fields

Name of DOCTYPE declared

Public identifier of this DOCTYPE.

System identifier of this DOCTYPE.

Methods

impl Doctype
[src]

Constructs an empty DOCTYPE, with all fields set to None.

Trait Implementations

impl PartialEq for Doctype
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Doctype
[src]

impl Clone for Doctype
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Doctype
[src]

Formats the value using the given formatter.