pub struct Attributes { /* private fields */ }
Expand description
A special prop type that can be used to spread attributes onto an element.
Implementations§
Source§impl Attributes
impl Attributes
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty Attributes
instance.
pub fn apply_self(self, el: &mut HtmlNode)
Trait Implementations§
Source§impl Default for Attributes
impl Default for Attributes
Source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
Source§impl SetAttribute for Attributes
impl SetAttribute for Attributes
fn set_attribute(&mut self, name: &'static str, value: impl AttributeValue)
fn set_event_handler( &mut self, name: &'static str, value: impl FnMut(Event) + 'static, )
Auto Trait Implementations§
impl Freeze for Attributes
impl !RefUnwindSafe for Attributes
impl !Send for Attributes
impl !Sync for Attributes
impl Unpin for Attributes
impl !UnwindSafe for Attributes
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