pub struct HtmlDoctype {
pub name: String,
pub public_id: String,
pub system_id: String,
}Expand description
Captured DOCTYPE content from an HTML document. Stored verbatim; HTML5 does not validate against DTDs, but the public/system identifiers are surfaced for tools that want to introspect them (e.g. detecting XHTML vs HTML5 input).
Fields§
§name: String§public_id: String§system_id: StringTrait Implementations§
Source§impl Clone for HtmlDoctype
impl Clone for HtmlDoctype
Source§fn clone(&self) -> HtmlDoctype
fn clone(&self) -> HtmlDoctype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HtmlDoctype
impl Debug for HtmlDoctype
impl Eq for HtmlDoctype
Source§impl PartialEq for HtmlDoctype
impl PartialEq for HtmlDoctype
Source§fn eq(&self, other: &HtmlDoctype) -> bool
fn eq(&self, other: &HtmlDoctype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HtmlDoctype
Auto Trait Implementations§
impl Freeze for HtmlDoctype
impl RefUnwindSafe for HtmlDoctype
impl Send for HtmlDoctype
impl Sync for HtmlDoctype
impl Unpin for HtmlDoctype
impl UnsafeUnpin for HtmlDoctype
impl UnwindSafe for HtmlDoctype
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