pub struct HTML;
Expand description

Format as HTML.

Trait Implementations

Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.

The MIME type for HTML is mime::TEXT_HTML_UTF_8.

“Escape” the given string so it can be safely displayed in this format. The precise meaning of this may vary from format to format, but the general sense is that this string does not have any internal formatting, and must be displayed appropriately. Read more
Return an actual Format for use in As below.

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.