[][src]Struct moxie_dom::elements::HtmlBuilder

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

The <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.

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


impl HtmlBuilder[src]

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

Initialize the element with all of the attributes so far.

impl HtmlBuilder[src]

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

Specifies the XML Namespace of the document. Default value is "http://www.w3.org/1999/xhtml". This is required in documents parsed with XML parsers, and optional in text/html documents.

Trait Implementations

impl ElementBuilder for HtmlBuilder[src]

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

impl GlobalEventHandler for HtmlBuilder[src]

impl HtmlElementBuilder for HtmlBuilder[src]

impl NodeWrapper for HtmlBuilder[src]

impl Parent<Body> for HtmlBuilder[src]

impl Parent<Head> for HtmlBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for HtmlBuilder[src]

impl !Send for HtmlBuilder[src]

impl !Sync for HtmlBuilder[src]

impl Unpin for HtmlBuilder[src]

impl !UnwindSafe for HtmlBuilder[src]

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: NodeWrapper

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.