Struct mt_dom::Attribute [−][src]
pub struct Attribute<NS, ATT, VAL, EVENT> where
NS: PartialEq + Clone + Debug,
ATT: PartialEq + Clone + Debug,
VAL: PartialEq + Clone + Debug,
EVENT: PartialEq + Clone + Debug, { pub namespace: Option<NS>, pub name: ATT, pub value: Vec<AttValue<VAL, EVENT>>, }
Expand description
These are the plain attributes of an element
Fields
namespace: Option<NS>
namespace of an attribute. This is specifically used by svg attributes such as xlink-href
name: ATT
the attribute name, optional since style attribute doesn’t need to have an attribute name
value: Vec<AttValue<VAL, EVENT>>
the attribute value, which could be a simple value, and event or a function call
Implementations
create a plain attribute with namespace
create from multiple values
Trait Implementations
Auto Trait Implementations
impl<NS, ATT, VAL, EVENT> RefUnwindSafe for Attribute<NS, ATT, VAL, EVENT> where
ATT: RefUnwindSafe,
EVENT: RefUnwindSafe,
NS: RefUnwindSafe,
VAL: RefUnwindSafe,
impl<NS, ATT, VAL, EVENT> Send for Attribute<NS, ATT, VAL, EVENT> where
ATT: Send,
EVENT: Send,
NS: Send,
VAL: Send,
impl<NS, ATT, VAL, EVENT> Sync for Attribute<NS, ATT, VAL, EVENT> where
ATT: Sync,
EVENT: Sync,
NS: Sync,
VAL: Sync,
impl<NS, ATT, VAL, EVENT> Unpin for Attribute<NS, ATT, VAL, EVENT> where
ATT: Unpin,
EVENT: Unpin,
NS: Unpin,
VAL: Unpin,
impl<NS, ATT, VAL, EVENT> UnwindSafe for Attribute<NS, ATT, VAL, EVENT> where
ATT: UnwindSafe,
EVENT: UnwindSafe,
NS: UnwindSafe,
VAL: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more