[][src]Struct stdweb::web::html_element::SlotElement

pub struct SlotElement(_);

The HTML <slot> element represents a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.

(JavaScript docs)

Methods

impl SlotElement[src]

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

The slot's name

(JavaScript docs)

pub fn set_name(&self, new_name: &str)[src]

Setter of name.

pub fn assigned_nodes(&self, kind: SlotContentKind) -> Vec<Node>[src]

Returns slot's assigned nodes.

(JavaScript docs)

pub fn assigned_elements(&self, kind: SlotContentKind) -> Vec<Element>[src]

Similar to assigned_nodes() but limited result to only elements.

(Spec)

Trait Implementations

impl JsSerialize for SlotElement[src]

impl TryFrom<EventTarget> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Node> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Element> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<HtmlElement> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<SlotElement> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for SlotElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for SlotElement[src]

impl ReferenceType for SlotElement[src]

impl IEventTarget for SlotElement[src]

impl INode for SlotElement[src]

impl IElement for SlotElement[src]

impl IHtmlElement for SlotElement[src]

impl AsRef<Reference> for SlotElement[src]

impl From<SlotElement> for EventTarget[src]

impl From<SlotElement> for Node[src]

impl From<SlotElement> for Element[src]

impl From<SlotElement> for HtmlElement[src]

impl From<SlotElement> for Reference[src]

impl Clone for SlotElement[src]

impl Eq for SlotElement[src]

impl PartialEq<SlotElement> for SlotElement[src]

impl Debug for SlotElement[src]

Auto Trait Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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