Struct Attributes
pub struct Attributes { /* private fields */ }
Expand description
A special prop type that can be used to spread attributes onto an element.
Implementations§
§impl Attributes
impl Attributes
pub fn new() -> Attributes
pub fn new() -> Attributes
Create a new empty Attributes
instance.
pub fn apply_self(self, el: &mut SsrNode)
Trait Implementations§
§impl Default for Attributes
impl Default for Attributes
§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
§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