Struct sauron::prelude::mt_dom::Attribute [−]
pub struct Attribute<NS, ATT, VAL, EVENT, MSG> { /* fields omitted */ }
Expand description
These are the plain attributes of an element
Implementations
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG>
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG>
create a plain attribute with namespace
pub fn with_multiple_values(
namespace: Option<NS>,
name: ATT,
value: Vec<VAL, Global>
) -> Attribute<NS, ATT, VAL, EVENT, MSG>
pub fn with_multiple_values(
namespace: Option<NS>,
name: ATT,
value: Vec<VAL, Global>
) -> Attribute<NS, ATT, VAL, EVENT, MSG>
create from multiple values
return the value of this attribute
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG> where
MSG: 'static,
EVENT: 'static,
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG> where
MSG: 'static,
EVENT: 'static,
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
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
render instance to a writable buffer with indention node_idx is for debugging purposes Read more
render the node to a writable buffer
no new_lines, no indents
render compressed html to string
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