pub struct Doctype {
pub force_quirks: bool,
pub name: HtmlString,
pub public_identifier: Option<HtmlString>,
pub system_identifier: Option<HtmlString>,
}
Expand description
A doctype. Some examples:
<!DOCTYPE {name}>
<!DOCTYPE {name} PUBLIC '{public_identifier}'>
<!DOCTYPE {name} SYSTEM '{system_identifier}'>
<!DOCTYPE {name} PUBLIC '{public_identifier}' '{system_identifier}'>
Fields§
§force_quirks: bool
The “force quirks” flag.
name: HtmlString
The doctype’s name. For HTML documents this is “html”.
public_identifier: Option<HtmlString>
The doctype’s public identifier.
system_identifier: Option<HtmlString>
The doctype’s system identifier.
Trait Implementations§
impl Eq for Doctype
impl StructuralPartialEq for Doctype
Auto Trait Implementations§
impl Freeze for Doctype
impl RefUnwindSafe for Doctype
impl Send for Doctype
impl Sync for Doctype
impl Unpin for Doctype
impl UnwindSafe for Doctype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)