pub struct Style<'a> {
pub global: GlobalAttributes<'a>,
pub events: Events<'a>,
pub media: Cow<'a, str>,
pub nonce: Cow<'a, str>,
pub type: Cow<'a, str>,
pub children: Vec<Node<'a>>,
}Expand description
A <style> element
Fields§
§global: GlobalAttributes<'a>The global attributes of this element
events: Events<'a>The element’s events
media: Cow<'a, str>The media attribute
nonce: Cow<'a, str>The nonce attribute
type: Cow<'a, str>The type attribute
children: Vec<Node<'a>>The children of this element
Trait Implementations§
Source§impl<'a> Element<'a> for Style<'a>
impl<'a> Element<'a> for Style<'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 Style<'a>
impl<'a> HasAutofocus<'a> for Style<'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> HasItemscope<'a> for Style<'a>
impl<'a> HasItemscope<'a> for Style<'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 Style<'a>
impl<'a> RefUnwindSafe for Style<'a>
impl<'a> Send for Style<'a>
impl<'a> Sync for Style<'a>
impl<'a> Unpin for Style<'a>
impl<'a> UnwindSafe for Style<'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