[−][src]Enum seed::dom_types::Node
An component in our virtual DOM. Related to, but different from DOM Nodes
Variants
Element(El<Ms>)
Text(Text)
Empty
Methods
impl<Ms> Node<Ms>
[src]
pub fn new_text(text: impl Into<Cow<'static, str>>) -> Self
[src]
pub fn from_markdown(markdown: &str) -> Vec<Node<Ms>>
[src]
See El::from_markdown
pub fn from_html(html: &str) -> Vec<Node<Ms>>
[src]
See El::from_html
pub fn add_child(self, node: Node<Ms>) -> Self
[src]
See El::add_child
pub fn add_attr(
self,
key: impl Into<Cow<'static, str>>,
val: impl Into<AtValue>
) -> Self
[src]
self,
key: impl Into<Cow<'static, str>>,
val: impl Into<AtValue>
) -> Self
See El::add_attr
pub fn add_class(self, name: impl Into<Cow<'static, str>>) -> Self
[src]
/// See `El::add_class``
pub fn add_style(
self,
key: impl Into<Cow<'static, str>>,
val: impl Into<CSSValue>
) -> Self
[src]
self,
key: impl Into<Cow<'static, str>>,
val: impl Into<CSSValue>
) -> Self
See El::add_style
pub fn add_listener(self, listener: Listener<Ms>) -> Self
[src]
See El::add_listener
pub fn add_text(self, text: impl Into<Cow<'static, str>>) -> Self
[src]
See El::add_text
pub fn replace_text(self, text: impl Into<Cow<'static, str>>) -> Self
[src]
See El::replace_text
pub fn get_text(&self) -> String
[src]
See El::get_text
Trait Implementations
impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Node<Ms>
[src]
type SelfWithOtherMs = Node<OtherMs>
fn map_message(
self,
f: impl FnOnce(Ms) -> OtherMs + 'static + Clone
) -> Node<OtherMs>
[src]
self,
f: impl FnOnce(Ms) -> OtherMs + 'static + Clone
) -> Node<OtherMs>
See note on impl for El
impl<Ms> UpdateEl<El<Ms>> for Node<Ms>
[src]
impl<Ms: 'static> View<Ms> for Node<Ms>
[src]
impl<Ms: Clone + 'static> Clone for Node<Ms>
[src]
fn clone(&self) -> Node<Ms>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Ms: PartialEq + 'static> PartialEq<Node<Ms>> for Node<Ms>
[src]
impl<Ms: Debug + 'static> Debug for Node<Ms>
[src]
Auto Trait Implementations
impl<Ms> !Sync for Node<Ms>
impl<Ms> !Send for Node<Ms>
impl<Ms> Unpin for Node<Ms> where
Ms: Unpin,
Ms: Unpin,
impl<Ms> !RefUnwindSafe for Node<Ms>
impl<Ms> !UnwindSafe for Node<Ms>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,