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

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]

pub fn new() -> Doctype[src]

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

Trait Implementations

impl PartialEq<Doctype> for Doctype[src]

impl Clone for Doctype[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Doctype[src]

impl Debug for Doctype[src]

Auto Trait Implementations

impl !Send for Doctype

impl !Sync for Doctype

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]