pub struct HtmlHeadElement { /* private fields */ }Expand description
A structure representing HTML <head> element.
Implementations§
Source§impl HtmlHeadElement
impl HtmlHeadElement
Sourcepub fn default_charset(self) -> Self
pub fn default_charset(self) -> Self
Use default charset which is UTF-8.
Sourcepub fn link(self, link: HtmlLinkElement) -> Self
pub fn link(self, link: HtmlLinkElement) -> Self
Use specified link.
Sourcepub fn stylesheet(self, href: &str) -> Self
pub fn stylesheet(self, href: &str) -> Self
Use specified stylesheet
Sourcepub fn style(self, style: HtmlStyleElement) -> Self
pub fn style(self, style: HtmlStyleElement) -> Self
Use specified styling.
Trait Implementations§
Source§impl Clone for HtmlHeadElement
impl Clone for HtmlHeadElement
Source§fn clone(&self) -> HtmlHeadElement
fn clone(&self) -> HtmlHeadElement
Returns a duplicate of the value. Read more
1.0.0 · 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 HtmlHeadElement
impl Debug for HtmlHeadElement
Source§impl Default for HtmlHeadElement
impl Default for HtmlHeadElement
Source§fn default() -> HtmlHeadElement
fn default() -> HtmlHeadElement
Returns the “default value” for a type. Read more
Source§impl From<HtmlHeadElement> for HtmlElement
impl From<HtmlHeadElement> for HtmlElement
Source§fn from(value: HtmlHeadElement) -> Self
fn from(value: HtmlHeadElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HtmlHeadElement
impl RefUnwindSafe for HtmlHeadElement
impl Send for HtmlHeadElement
impl Sync for HtmlHeadElement
impl Unpin for HtmlHeadElement
impl UnwindSafe for HtmlHeadElement
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