Struct rdom::sandbox::Builder[][src]

pub struct Builder<R: Buildable> { /* fields omitted */ }

A Builder is a machine which can be used to build nodes of reference type R.

Implementations

impl Builder<AttributeNodeArc>[src]

pub fn build(&self, storage: AttributeNodeStorage) -> AttributeNodeArc[src]

Builds a new Attribute node with the given storage value

impl Builder<TextNodeArc>[src]

pub fn build(&self, storage: TextNodeStorage) -> TextNodeArc[src]

Builds a new Text node with the given storage value

impl Builder<CDataSectionNodeArc>[src]

pub fn build(&self, storage: CDataSectionNodeStorage) -> CDataSectionNodeArc[src]

Builds a new CDataSection node with the given storage value

impl Builder<ProcessingInstructionNodeArc>[src]

pub fn build(
    &self,
    storage: ProcessingInstructionNodeStorage
) -> ProcessingInstructionNodeArc
[src]

Builds a new ProcessingInstruction node with the given storage value

impl Builder<CommentNodeArc>[src]

pub fn build(&self, storage: CommentNodeStorage) -> CommentNodeArc[src]

Builds a new Comment node with the given storage value

impl Builder<DocumentNodeArc>[src]

pub fn build(&self, storage: DocumentNodeStorage) -> DocumentNodeArc[src]

Builds a new Document node with the given storage value

impl Builder<DocumentTypeNodeArc>[src]

pub fn build(&self, storage: DocumentTypeNodeStorage) -> DocumentTypeNodeArc[src]

Builds a new DocumentType node with the given storage value

impl Builder<DocumentFragmentNodeArc>[src]

pub fn build(
    &self,
    storage: DocumentFragmentNodeStorage
) -> DocumentFragmentNodeArc
[src]

Builds a new DocumentFragment node with the given storage value

impl Builder<ElementNodeArc>[src]

pub fn build_html(
    &self,
    default_view: Weak<Window>
) -> ConcreteNodeArc<ElementNodeStorage>
[src]

Builds a new HtmlHtmlElement node with a weak reference to its corresponding window

pub fn build_body(&self) -> ConcreteNodeArc<ElementNodeStorage>[src]

Builds a new HtmlBodyElement node

pub fn build_button(&self) -> ConcreteNodeArc<ElementNodeStorage>[src]

Builds a new HtmlButtonElement node

Auto Trait Implementations

impl<R> RefUnwindSafe for Builder<R> where
    R: RefUnwindSafe

impl<R> Send for Builder<R> where
    R: Send

impl<R> Sync for Builder<R> where
    R: Sync

impl<R> Unpin for Builder<R> where
    R: Unpin

impl<R> UnwindSafe for Builder<R> where
    R: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.