[][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.

Implementations

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 Element for HtmlBuilder[src]

impl<E> EventTarget<E> for HtmlBuilder where
    E: GlobalEvent
[src]

impl GlobalEventHandler for HtmlBuilder[src]

impl HtmlElement for HtmlBuilder[src]

impl Node for HtmlBuilder[src]

impl Parent<Body> for HtmlBuilder[src]

impl Parent<Head> for HtmlBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for HtmlBuilder

impl !Send for HtmlBuilder

impl !Sync for HtmlBuilder

impl Unpin for HtmlBuilder

impl !UnwindSafe for HtmlBuilder

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<N> Child for N where
    N: Node
[src]

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>, 
[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.