pub struct Meta<'a> {
pub global: GlobalAttributes<'a>,
pub events: Events<'a>,
pub charset: Cow<'a, str>,
pub content: Cow<'a, str>,
pub http_equiv: Cow<'a, str>,
pub name: Cow<'a, str>,
pub children: Vec<Node<'a>>,
}Expand description
A <meta> element
Fields§
§global: GlobalAttributes<'a>The global attributes of this element
events: Events<'a>The element’s events
charset: Cow<'a, str>The charset attribute
content: Cow<'a, str>The content attribute
http_equiv: Cow<'a, str>The http_equiv attribute
name: Cow<'a, str>The name attribute
children: Vec<Node<'a>>The children of this element
Trait Implementations§
Source§impl<'a> Element<'a> for Meta<'a>
impl<'a> Element<'a> for Meta<'a>
Source§fn events_mut(&mut self) -> &mut Events<'a>
fn events_mut(&mut self) -> &mut Events<'a>
Get the mutable events of this element
Source§fn children_mut(&mut self) -> &mut Vec<Node<'a>>
fn children_mut(&mut self) -> &mut Vec<Node<'a>>
Get the mutable children of this element
Source§impl<'a> HasAutofocus<'a> for Meta<'a>
impl<'a> HasAutofocus<'a> for Meta<'a>
Source§fn get_autofocus(&self) -> bool
fn get_autofocus(&self) -> bool
Get the value of the
autofocus attributeSource§fn set_autofocus(&mut self, val: impl Into<bool>)
fn set_autofocus(&mut self, val: impl Into<bool>)
Set the value of the
autofocus attributeSource§impl<'a> HasCharset<'a> for Meta<'a>
impl<'a> HasCharset<'a> for Meta<'a>
Source§fn get_charset(&self) -> &'_ str
fn get_charset(&self) -> &'_ str
Get the value of the
charset attributeSource§impl<'a> HasContent<'a> for Meta<'a>
impl<'a> HasContent<'a> for Meta<'a>
Source§fn get_content(&self) -> &'_ str
fn get_content(&self) -> &'_ str
Get the value of the
content attributeSource§impl<'a> HasHttpEquiv<'a> for Meta<'a>
impl<'a> HasHttpEquiv<'a> for Meta<'a>
Source§fn get_http_equiv(&self) -> &'_ str
fn get_http_equiv(&self) -> &'_ str
Get the value of the
http_equiv attributeSource§impl<'a> HasItemscope<'a> for Meta<'a>
impl<'a> HasItemscope<'a> for Meta<'a>
Source§fn get_itemscope(&self) -> bool
fn get_itemscope(&self) -> bool
Get the value of the
itemscope attributeSource§fn set_itemscope(&mut self, val: impl Into<bool>)
fn set_itemscope(&mut self, val: impl Into<bool>)
Set the value of the
itemscope attributeAuto Trait Implementations§
impl<'a> Freeze for Meta<'a>
impl<'a> RefUnwindSafe for Meta<'a>
impl<'a> Send for Meta<'a>
impl<'a> Sync for Meta<'a>
impl<'a> Unpin for Meta<'a>
impl<'a> UnwindSafe for Meta<'a>
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