Enum dioxus_rsx::ElementAttr
source · pub enum ElementAttr {
AttrText {
name: Ident,
value: IfmtInput,
},
AttrExpression {
name: Ident,
value: Expr,
},
CustomAttrText {
name: LitStr,
value: IfmtInput,
},
CustomAttrExpression {
name: LitStr,
value: Expr,
},
EventTokens {
name: Ident,
tokens: Expr,
},
}
Variants§
AttrText
attribute: "value"
AttrExpression
attribute: true
CustomAttrText
"attribute": "value"
CustomAttrExpression
"attribute": true
EventTokens
onclick: {}
Implementations§
Trait Implementations§
source§impl Clone for ElementAttr
impl Clone for ElementAttr
source§fn clone(&self) -> ElementAttr
fn clone(&self) -> ElementAttr
Returns a copy 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 ElementAttr
impl Debug for ElementAttr
source§impl Hash for ElementAttr
impl Hash for ElementAttr
source§impl PartialEq<ElementAttr> for ElementAttr
impl PartialEq<ElementAttr> for ElementAttr
source§fn eq(&self, other: &ElementAttr) -> bool
fn eq(&self, other: &ElementAttr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ElementAttr
impl StructuralEq for ElementAttr
impl StructuralPartialEq for ElementAttr
Auto Trait Implementations§
impl RefUnwindSafe for ElementAttr
impl !Send for ElementAttr
impl !Sync for ElementAttr
impl Unpin for ElementAttr
impl UnwindSafe for ElementAttr
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