Struct mt_dom::Attribute [−][src]
pub struct Attribute<NS, ATT, VAL, EVENT, MSG> { /* fields omitted */ }
Expand description
These are the plain attributes of an element
Implementations
create a plain attribute with namespace
create from multiple values
map the msg
pub fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Attribute<NS, ATT, VAL, EVENT, MSG2> where
MSG2: 'static,
pub fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Attribute<NS, ATT, VAL, EVENT, MSG2> where
MSG2: 'static,
transform the callback of this attribute
return the callback values of this attribute
Trait Implementations
Note: using the #[derive(Debug)] needs EVENT and MSG to also be Debug
The reason this is manually implemented is, so that EVENT and MSG doesn’t need to be Debug as it is part of the Callback objects and are not shown.
Note: using the #[derive(Debug)] needs EVENT and MSG to also be Debug
The reason this is manually implemented is, so that EVENT and MSG doesn’t need to be Debug as it is part of the Callback objects and are not shown.
Note: using the #[derive(PartialEq)] needs EVENT and MSG to also be PartialEq.
The reason this is manually implemented is, so that EVENT and MSG doesn’t need to be PartialEq as it is part of the Callback objects and are not compared
Auto Trait Implementations
impl<NS, ATT, VAL, EVENT, MSG> !RefUnwindSafe for Attribute<NS, ATT, VAL, EVENT, MSG>
impl<NS, ATT, VAL, EVENT, MSG> Unpin for Attribute<NS, ATT, VAL, EVENT, MSG> where
ATT: Unpin,
NS: Unpin,
VAL: Unpin,
impl<NS, ATT, VAL, EVENT, MSG> !UnwindSafe for Attribute<NS, ATT, VAL, EVENT, MSG>
Blanket Implementations
Mutably borrows from an owned value. Read more