Struct html_builder::Node[][src]

pub struct Node<'a> { /* fields omitted */ }

An HTML element.

Implementations

impl<'a> Node<'a>[src]

pub fn child<'b>(&'b mut self, tag: Cow<'static, str>) -> Node<'b>[src]

pub fn void_child<'b>(&'b mut self, tag: Cow<'static, str>) -> Void<'b>[src]

pub fn attr(self, attr: &str) -> Node<'a>[src]

Trait Implementations

impl<'a> Clone for Node<'a>[src]

impl<'a> Html5 for Node<'a>[src]

fn doctype<'b>(&'b mut self)[src]

Defines the document type

fn a<'b>(&'b mut self) -> Node<'b>[src]

Defines a hyperlink

fn abbr<'b>(&'b mut self) -> Node<'b>[src]

Defines an abbreviation or an acronym

fn address<'b>(&'b mut self) -> Node<'b>[src]

Defines contact information for the author/owner of a document

fn area<'b>(&'b mut self) -> Void<'b>[src]

Defines an area inside an image map

fn article<'b>(&'b mut self) -> Node<'b>[src]

Defines an article

fn aside<'b>(&'b mut self) -> Node<'b>[src]

Defines content aside from the page content

fn audio<'b>(&'b mut self) -> Node<'b>[src]

Defines embedded sound content

fn b<'b>(&'b mut self) -> Node<'b>[src]

Defines bold text

fn base<'b>(&'b mut self) -> Void<'b>[src]

Specifies the base URL/target for all relative URLs in a document

fn bdi<'b>(&'b mut self) -> Node<'b>[src]

Isolates a part of text that might be formatted in a different direction from other text outside it

fn bdo<'b>(&'b mut self) -> Node<'b>[src]

Overrides the current text direction

fn blockquote<'b>(&'b mut self) -> Node<'b>[src]

Defines a section that is quoted from another source

fn body<'b>(&'b mut self) -> Node<'b>[src]

Defines the document’s body

fn br<'b>(&'b mut self) -> Void<'b>[src]

Defines a single line break

fn button<'b>(&'b mut self) -> Node<'b>[src]

Defines a clickable button

fn canvas<'b>(&'b mut self) -> Node<'b>[src]

Used to draw graphics, on the fly, via scripting (usually JavaScript)

fn caption<'b>(&'b mut self) -> Node<'b>[src]

Defines a table caption

fn cite<'b>(&'b mut self) -> Node<'b>[src]

Defines the title of a work

fn code<'b>(&'b mut self) -> Node<'b>[src]

Defines a piece of computer code

fn col<'b>(&'b mut self) -> Void<'b>[src]

Specifies column properties for each column within a element

fn colgroup<'b>(&'b mut self) -> Node<'b>[src]

Specifies a group of one or more columns in a table for formatting

fn data<'b>(&'b mut self) -> Node<'b>[src]

Adds a machine-readable translation of a given content

fn datalist<'b>(&'b mut self) -> Node<'b>[src]

Specifies a list of pre-defined options for input controls

fn dd<'b>(&'b mut self) -> Node<'b>[src]

Defines a description/value of a term in a description list

fn del<'b>(&'b mut self) -> Node<'b>[src]

Defines text that has been deleted from a document

fn details<'b>(&'b mut self) -> Node<'b>[src]

Defines additional details that the user can view or hide

fn dfn<'b>(&'b mut self) -> Node<'b>[src]

Specifies a term that is going to be defined within the content

fn dialog<'b>(&'b mut self) -> Node<'b>[src]

Defines a dialog box or window

fn div<'b>(&'b mut self) -> Node<'b>[src]

Defines a section in a document

fn dl<'b>(&'b mut self) -> Node<'b>[src]

Defines a description list

fn dt<'b>(&'b mut self) -> Node<'b>[src]

Defines a term/name in a description list

fn em<'b>(&'b mut self) -> Node<'b>[src]

Defines emphasized text

fn embed<'b>(&'b mut self) -> Void<'b>[src]

Defines a container for an external application

fn fieldset<'b>(&'b mut self) -> Node<'b>[src]

Groups related elements in a form

fn figcaption<'b>(&'b mut self) -> Node<'b>[src]

Defines a caption for a

element

fn figure<'b>(&'b mut self) -> Node<'b>[src]

Specifies self-contained content

fn footer<'b>(&'b mut self) -> Node<'b>[src]

Defines a footer for a document or section

fn form<'b>(&'b mut self) -> Node<'b>[src]

Defines an HTML form for user input

fn h1<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn h2<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn h3<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn h4<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn h5<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn h6<'b>(&'b mut self) -> Node<'b>[src]

Defines HTML headings

fn head<'b>(&'b mut self) -> Node<'b>[src]

Contains metadata/information for the document

fn header<'b>(&'b mut self) -> Node<'b>[src]

Defines a header for a document or section

fn hr<'b>(&'b mut self) -> Void<'b>[src]

Defines a thematic change in the content

fn html<'b>(&'b mut self) -> Node<'b>[src]

Defines the root of an HTML document

fn i<'b>(&'b mut self) -> Node<'b>[src]

Defines a part of text in an alternate voice or mood

fn iframe<'b>(&'b mut self) -> Node<'b>[src]

Defines an inline frame

fn img<'b>(&'b mut self) -> Void<'b>[src]

Defines an image

fn input<'b>(&'b mut self) -> Void<'b>[src]

Defines an input control

fn ins<'b>(&'b mut self) -> Node<'b>[src]

Defines a text that has been inserted into a document

fn kbd<'b>(&'b mut self) -> Node<'b>[src]

Defines keyboard input

fn label<'b>(&'b mut self) -> Node<'b>[src]

Defines a label for an element

fn legend<'b>(&'b mut self) -> Node<'b>[src]

Defines a caption for a

element

fn li<'b>(&'b mut self) -> Node<'b>[src]

Defines a list item

Defines the relationship between a document and an external resource (most used to link to style sheets)

fn main<'b>(&'b mut self) -> Node<'b>[src]

Specifies the main content of a document

fn map<'b>(&'b mut self) -> Node<'b>[src]

Defines an image map

fn mark<'b>(&'b mut self) -> Node<'b>[src]

Defines marked/highlighted text

fn meta<'b>(&'b mut self) -> Void<'b>[src]

Defines metadata about an HTML document

fn meter<'b>(&'b mut self) -> Node<'b>[src]

Defines a scalar measurement within a known range (a gauge)

fn nav<'b>(&'b mut self) -> Node<'b>[src]

Defines navigation links

fn noscript<'b>(&'b mut self) -> Node<'b>[src]

Defines an alternate content for users that do not support client-side scripts

fn object<'b>(&'b mut self) -> Node<'b>[src]

Defines a container for an external application

fn ol<'b>(&'b mut self) -> Node<'b>[src]

Defines an ordered list

fn optgroup<'b>(&'b mut self) -> Node<'b>[src]

Defines a group of related options in a drop-down list

fn option<'b>(&'b mut self) -> Node<'b>[src]

Defines an option in a drop-down list

fn output<'b>(&'b mut self) -> Node<'b>[src]

Defines the result of a calculation

fn p<'b>(&'b mut self) -> Node<'b>[src]

Defines a paragraph

fn param<'b>(&'b mut self) -> Void<'b>[src]

Defines a parameter for an object

fn picture<'b>(&'b mut self) -> Node<'b>[src]

Defines a container for multiple image resources

fn pre<'b>(&'b mut self) -> Node<'b>[src]

Defines preformatted text

fn progress<'b>(&'b mut self) -> Node<'b>[src]

Represents the progress of a task

fn q<'b>(&'b mut self) -> Node<'b>[src]

Defines a short quotation

fn rp<'b>(&'b mut self) -> Node<'b>[src]

Defines what to show in browsers that do not support ruby annotations

fn rt<'b>(&'b mut self) -> Node<'b>[src]

Defines an explanation/pronunciation of characters (for East Asian typography)

fn ruby<'b>(&'b mut self) -> Node<'b>[src]

Defines a ruby annotation (for East Asian typography)

fn s<'b>(&'b mut self) -> Node<'b>[src]

Defines text that is no longer correct

fn samp<'b>(&'b mut self) -> Node<'b>[src]

Defines sample output from a computer program

fn script<'b>(&'b mut self) -> Node<'b>[src]

Defines a client-side script

fn section<'b>(&'b mut self) -> Node<'b>[src]

Defines a section in a document

fn select<'b>(&'b mut self) -> Node<'b>[src]

Defines a drop-down list

fn small<'b>(&'b mut self) -> Node<'b>[src]

Defines smaller text

fn source<'b>(&'b mut self) -> Void<'b>[src]

Defines multiple media resources for media elements (

fn span<'b>(&'b mut self) -> Node<'b>[src]

Defines a section in a document

fn strong<'b>(&'b mut self) -> Node<'b>[src]

Defines important text

fn style<'b>(&'b mut self) -> Node<'b>[src]

Defines style information for a document

fn sub<'b>(&'b mut self) -> Node<'b>[src]

Defines subscripted text

fn summary<'b>(&'b mut self) -> Node<'b>[src]

Defines a visible heading for a

element

fn sup<'b>(&'b mut self) -> Node<'b>[src]

Defines superscripted text

fn svg<'b>(&'b mut self) -> Node<'b>[src]

Defines a container for SVG graphics

fn table<'b>(&'b mut self) -> Node<'b>[src]

Defines a table

fn tbody<'b>(&'b mut self) -> Node<'b>[src]

Groups the body content in a table

fn td<'b>(&'b mut self) -> Node<'b>[src]

Defines a cell in a table

fn template<'b>(&'b mut self) -> Node<'b>[src]

Defines a container for content that should be hidden when the page loads

fn textarea<'b>(&'b mut self) -> Node<'b>[src]

Defines a multiline input control (text area)

fn tfoot<'b>(&'b mut self) -> Node<'b>[src]

Groups the footer content in a table

fn th<'b>(&'b mut self) -> Node<'b>[src]

Defines a header cell in a table

fn thead<'b>(&'b mut self) -> Node<'b>[src]

Groups the header content in a table

fn time<'b>(&'b mut self) -> Node<'b>[src]

Defines a specific time (or datetime)

fn title<'b>(&'b mut self) -> Node<'b>[src]

Defines a title for the document

fn tr<'b>(&'b mut self) -> Node<'b>[src]

Defines a row in a table

fn track<'b>(&'b mut self) -> Void<'b>[src]

Defines text tracks for media elements (

fn u<'b>(&'b mut self) -> Node<'b>[src]

Defines some text that is unarticulated and styled differently from normal text

fn ul<'b>(&'b mut self) -> Node<'b>[src]

Defines an unordered list

fn var<'b>(&'b mut self) -> Node<'b>[src]

Defines a variable

fn video<'b>(&'b mut self) -> Node<'b>[src]

Defines embedded video content

fn wbr<'b>(&'b mut self) -> Void<'b>[src]

Defines a possible line-break

impl<'a> Write for Node<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Node<'a>

impl<'a> Send for Node<'a>

impl<'a> Sync for Node<'a>

impl<'a> Unpin for Node<'a>

impl<'a> UnwindSafe for Node<'a>

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