Struct tl::HTMLTag[][src]

pub struct HTMLTag<'a> { /* fields omitted */ }
Expand description

Represents a single HTML element

Implementations

Returns an iterator over subnodes (“children”) of this HTML tag

Returns the name of this HTML tag

Returns attributes of this HTML tag

Returns the contained markup Equivalent to Element#innerHTML in browsers)

Returns the contained text of this element, excluding any markup Equivalent to Element#innerText in browsers) This function may not allocate memory for a new string as it can just return the part of the tag that doesn’t have markup For tags that do have more than one subnode, this will allocate memory

Calls the given closure with each tag as parameter

The closure must return a boolean, indicating whether it should stop iterating Returning true will break the loop

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.