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: Option<StrTendril>
Name of DOCTYPE declared
public_id: Option<StrTendril>
Public identifier of this DOCTYPE.
system_id: Option<StrTendril>
System identifier of this DOCTYPE.
Methods
impl Doctype
[src]
Trait Implementations
impl PartialEq for Doctype
[src]
fn eq(&self, __arg_0: &Doctype) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Doctype) -> bool
[src]
This method tests for !=
.
impl Eq for Doctype
[src]
impl Clone for Doctype
[src]
fn clone(&self) -> Doctype
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more