pub struct Element {
    pub name: String,
    pub attrs: Vec<(String, String)>,
    pub children: Vec<Node>,
}
Expand description

HTML Element

Fields

name: Stringattrs: Vec<(String, String)>children: Vec<Node>

Implementations

Create a new element.

Trait Implementations

Formats the value using the given formatter. Read more

Remove all empty text nodes from self. Read more

Insert node as the last child to all elements that matches the selector. Read more

Remove all elements that matches the selector. Read more

Convert the object to html string. Read more

Query the node in self for the given selector. Read more

Query all the nodes in self for the given selector. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.