pub enum TAttr {
Static {
name: String,
value: Option<String>,
span: Span,
},
Dynamic {
name: String,
parts: Vec<AttrPart>,
span: Span,
},
On {
event: String,
modifiers: Vec<EventModifier>,
expr: TExpr,
span: Span,
},
Bind {
field: String,
at: usize,
span: Span,
},
Class {
name: String,
expr: TExpr,
span: Span,
},
}Expand description
An attribute or directive on an element / a prop on a component.
Variants§
Static
Dynamic
On
on-<event>[.<qualifier>…]={…}, its qualifiers classified by the event-modifier catalogue.
Bind
bind={field}; at is the byte offset of field in the template source.
Class
Trait Implementations§
impl Eq for TAttr
impl StructuralPartialEq for TAttr
Auto Trait Implementations§
impl Freeze for TAttr
impl RefUnwindSafe for TAttr
impl Send for TAttr
impl Sync for TAttr
impl Unpin for TAttr
impl UnsafeUnpin for TAttr
impl UnwindSafe for TAttr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.