[][src]Struct kagura::native::Element

#[repr(transparent)]
pub struct Element { /* fields omitted */ }

Methods

impl Element[src]

pub fn remove(&self)[src]

impl Element[src]

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

impl Element[src]

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

impl Element[src]

pub fn set_id(&self, id: &str)[src]

impl Element[src]

pub fn tag_name(&self) -> String[src]

impl Element[src]

pub fn children(&self) -> HTMLCollection[src]

Methods from Deref<Target = Node>

pub fn append_child(&self, a_child: &Node)[src]

pub fn replace_child(&self, new_child: &Node, old_child: &Node)[src]

pub fn parent_node(&self) -> Node[src]

pub fn child_nodes(&self) -> NodeList[src]

pub fn clone_node(&self, deep: bool) -> Node[src]

pub fn remove_child(&self, child: &Node) -> Node[src]

Trait Implementations

impl AsRef<JsValue> for Element[src]

impl AsRef<Element> for Element[src]

impl AsRef<Node> for Element[src]

impl AsRef<Element> for HTMLElement[src]

impl From<JsValue> for Element[src]

impl From<Element> for JsValue[src]

impl From<Element> for Node[src]

impl From<HTMLElement> for Element[src]

impl Deref for Element[src]

type Target = Node

The resulting type after dereferencing.

impl FromWasmAbi for Element[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Element[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Element[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl RefFromWasmAbi for Element[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Element>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl WasmDescribe for Element[src]

impl OptionFromWasmAbi for Element[src]

impl OptionIntoWasmAbi for Element[src]

impl<'a> OptionIntoWasmAbi for &'a Element[src]

impl JsCast for Element[src]

Auto Trait Implementations

impl !Send for Element

impl Unpin for Element

impl !Sync for Element

impl UnwindSafe for Element

impl RefUnwindSafe for Element

Blanket Implementations

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

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

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi