[][src]Struct ss_web_utils::dom::Text

pub struct Text {
    pub dom_ref: JsValue,
    pub dom_ref_as_text: Text,
    pub dom_ref_as_node: Node,
}

Fields

dom_ref: JsValuedom_ref_as_text: Textdom_ref_as_node: Node

Methods

impl Text[src]

pub fn new(initial_value: &str) -> Self[src]

pub fn set_text_content(&self, value: &str)[src]

Trait Implementations

impl DomRef for Text[src]

fn add_event_listener(&self, event_name: &str, cb: &dyn Callback)[src]

fn remove_event_listener(&self, event_name: &str, cb: &dyn Callback)[src]

fn append_child(&self, child: &dyn DomRef)[src]

fn remove_child(&self, child: &dyn DomRef)[src]

fn try_remove_child(&self, child: &dyn DomRef) -> Result<(), JsValue>[src]

fn replace_child(&self, new_child: &dyn DomRef, old_child: &dyn DomRef)[src]

impl Clone for Text[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Text[src]

Auto Trait Implementations

impl !Send for Text

impl !Sync for Text

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]