pub struct HtmlDocument { /* private fields */ }
Expand description
A structure representing HTML document.
Implementations§
Source§impl HtmlDocument
impl HtmlDocument
Sourcepub fn default_doctype(self) -> Self
pub fn default_doctype(self) -> Self
Uses default doctype declaration.
Sourcepub fn default_namespace(self) -> Self
pub fn default_namespace(self) -> Self
Uses default namespace.
Sourcepub fn default_language(self) -> Self
pub fn default_language(self) -> Self
Uses default language.
Sourcepub fn head(self, head: HtmlHeadElement) -> Self
pub fn head(self, head: HtmlHeadElement) -> Self
Uses custom head element.
Sourcepub fn body(self, body: HtmlBodyElement) -> Self
pub fn body(self, body: HtmlBodyElement) -> Self
Uses custom body element.
Trait Implementations§
Source§impl Clone for HtmlDocument
impl Clone for HtmlDocument
Source§fn clone(&self) -> HtmlDocument
fn clone(&self) -> HtmlDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HtmlDocument
impl Debug for HtmlDocument
Source§impl Display for HtmlDocument
impl Display for HtmlDocument
Auto Trait Implementations§
impl Freeze for HtmlDocument
impl RefUnwindSafe for HtmlDocument
impl Send for HtmlDocument
impl Sync for HtmlDocument
impl Unpin for HtmlDocument
impl UnwindSafe for HtmlDocument
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