[][src]Struct moxie_dom::elements::SlotBuilder

#[must_use = "needs to be built"]pub struct SlotBuilder { /* fields omitted */ }

The HTML <slot> element—part of the Web Components technology suite—is 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.

A type for initializing the element's attributes before calling build.


impl SlotBuilder[src]

pub fn build(self) -> Slot[src]

Initialize the element with all of the attributes so far.

impl SlotBuilder[src]

pub fn name(self, to_set: impl ToString) -> Self[src]

The slot's name.

Trait Implementations

impl Element for SlotBuilder[src]

impl<E> EventTarget<E> for SlotBuilder where
    E: GlobalEvent

impl GlobalEventHandler for SlotBuilder[src]

impl HtmlElement for SlotBuilder[src]

impl Node for SlotBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for SlotBuilder

impl !Send for SlotBuilder

impl !Sync for SlotBuilder

impl Unpin for SlotBuilder

impl !UnwindSafe for SlotBuilder

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<N> Child for N where
    N: Node

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.