Enum sauron::DomAttrValue
source · pub enum DomAttrValue {
Simple(Value),
Style(Vec<Style>),
EventListener(Closure<dyn FnMut(Event)>),
Empty,
}
Expand description
a dom version of the Attribute value, thereby removing the MSG generic
Variants§
Simple(Value)
simple value
Style(Vec<Style>)
a style
EventListener(Closure<dyn FnMut(Event)>)
event listeners
Empty
an empty value, can also represents null values from JsValue
Implementations§
Trait Implementations§
source§impl Debug for DomAttrValue
impl Debug for DomAttrValue
source§impl From<JsValue> for DomAttrValue
impl From<JsValue> for DomAttrValue
source§fn from(val: JsValue) -> DomAttrValue
fn from(val: JsValue) -> DomAttrValue
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DomAttrValue
impl !RefUnwindSafe for DomAttrValue
impl !Send for DomAttrValue
impl !Sync for DomAttrValue
impl Unpin for DomAttrValue
impl !UnwindSafe for DomAttrValue
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