Expand description
A component in our virtual DOM.
MDN reference
web_sys
reference
Variants
Element(El<Ms>)
Text(Text)
Empty
NoChange
Implementations
sourceimpl<Ms> Node<Ms>
impl<Ms> Node<Ms>
sourcepub fn add_attr(
&mut self,
key: impl Into<Cow<'static, str>>,
val: impl Into<AtValue>
) -> &mut Self
pub fn add_attr(
&mut self,
key: impl Into<Cow<'static, str>>,
val: impl Into<AtValue>
) -> &mut Self
See El::add_attr
sourcepub fn add_style(
&mut self,
key: impl Into<St>,
val: impl Into<CSSValue>
) -> &mut Self
pub fn add_style(
&mut self,
key: impl Into<St>,
val: impl Into<CSSValue>
) -> &mut Self
See El::add_style
sourcepub fn add_event_handler(
&mut self,
event_handler: EventHandler<Ms>
) -> &mut Self
pub fn add_event_handler(
&mut self,
event_handler: EventHandler<Ms>
) -> &mut Self
See El::add_event_handler
Trait Implementations
sourceimpl<Ms> IntoNodes<Ms> for Node<Ms>
impl<Ms> IntoNodes<Ms> for Node<Ms>
sourcefn into_nodes(self) -> Vec<Node<Ms>>
fn into_nodes(self) -> Vec<Node<Ms>>
Converts item or items to Vec<Node<Ms>
.
sourceimpl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Node<Ms>
impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Node<Ms>
Auto Trait Implementations
impl<Ms> !RefUnwindSafe for Node<Ms>
impl<Ms> !Send for Node<Ms>
impl<Ms> !Sync for Node<Ms>
impl<Ms> Unpin for Node<Ms>
impl<Ms> !UnwindSafe for Node<Ms>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more