[][src]Struct ss_web_utils::dom::Body

pub struct Body {
    pub i_dom_ref: JsValue,
    pub i_dom_ref_as_node: Node,
    pub i_dom_ref_as_element: Element,
}

Fields

i_dom_ref: JsValuei_dom_ref_as_node: Nodei_dom_ref_as_element: Element

Methods

impl Body[src]

pub fn new() -> Self[src]

Trait Implementations

impl DomRef for Body[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 DomNode for Body[src]

fn set_attribute(&self, key: &str, value: &str)[src]

fn remove_attribute(&self, key: &str)[src]

impl Clone for Body[src]

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

Performs copy-assignment from source. Read more

impl Debug for Body[src]

Auto Trait Implementations

impl !Send for Body

impl !Sync for Body

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]