Skip to main content

HtmlElement

Trait HtmlElement 

Source
pub trait HtmlElement {
    const TAG: &'static str;
    const VOID: bool = false;
}
Expand description

Trait implemented by all HTML elements.

Required Associated Constants§

Source

const TAG: &'static str

The HTML tag name (e.g., “div”, “span”, “img”).

Provided Associated Constants§

Source

const VOID: bool = false

Whether this is a void element (self-closing, no children allowed).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HtmlElement for A

Source§

const TAG: &'static str = "a"

Source§

impl HtmlElement for Abbr

Source§

const TAG: &'static str = "abbr"

Source§

impl HtmlElement for Address

Source§

const TAG: &'static str = "address"

Source§

impl HtmlElement for Area

Source§

const TAG: &'static str = "area"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Article

Source§

const TAG: &'static str = "article"

Source§

impl HtmlElement for Aside

Source§

const TAG: &'static str = "aside"

Source§

impl HtmlElement for Audio

Source§

const TAG: &'static str = "audio"

Source§

impl HtmlElement for B

Source§

const TAG: &'static str = "b"

Source§

impl HtmlElement for Base

Source§

const TAG: &'static str = "base"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Bdi

Source§

const TAG: &'static str = "bdi"

Source§

impl HtmlElement for Bdo

Source§

const TAG: &'static str = "bdo"

Source§

impl HtmlElement for Blockquote

Source§

const TAG: &'static str = "blockquote"

Source§

impl HtmlElement for Body

Source§

const TAG: &'static str = "body"

Source§

impl HtmlElement for Br

Source§

const TAG: &'static str = "br"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Button

Source§

const TAG: &'static str = "button"

Source§

impl HtmlElement for Canvas

Source§

const TAG: &'static str = "canvas"

Source§

impl HtmlElement for Caption

Source§

const TAG: &'static str = "caption"

Source§

impl HtmlElement for Cite

Source§

const TAG: &'static str = "cite"

Source§

impl HtmlElement for Code

Source§

const TAG: &'static str = "code"

Source§

impl HtmlElement for Col

Source§

const TAG: &'static str = "col"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Colgroup

Source§

const TAG: &'static str = "colgroup"

Source§

impl HtmlElement for Data

Source§

const TAG: &'static str = "data"

Source§

impl HtmlElement for Datalist

Source§

const TAG: &'static str = "datalist"

Source§

impl HtmlElement for Dd

Source§

const TAG: &'static str = "dd"

Source§

impl HtmlElement for Del

Source§

const TAG: &'static str = "del"

Source§

impl HtmlElement for Details

Source§

const TAG: &'static str = "details"

Source§

impl HtmlElement for Dfn

Source§

const TAG: &'static str = "dfn"

Source§

impl HtmlElement for Dialog

Source§

const TAG: &'static str = "dialog"

Source§

impl HtmlElement for Div

Source§

const TAG: &'static str = "div"

Source§

impl HtmlElement for Dl

Source§

const TAG: &'static str = "dl"

Source§

impl HtmlElement for Dt

Source§

const TAG: &'static str = "dt"

Source§

impl HtmlElement for Em

Source§

const TAG: &'static str = "em"

Source§

impl HtmlElement for Embed

Source§

const TAG: &'static str = "embed"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Fieldset

Source§

const TAG: &'static str = "fieldset"

Source§

impl HtmlElement for Figcaption

Source§

const TAG: &'static str = "figcaption"

Source§

impl HtmlElement for Figure

Source§

const TAG: &'static str = "figure"

Source§

const TAG: &'static str = "footer"

Source§

impl HtmlElement for Form

Source§

const TAG: &'static str = "form"

Source§

impl HtmlElement for H1

Source§

const TAG: &'static str = "h1"

Source§

impl HtmlElement for H2

Source§

const TAG: &'static str = "h2"

Source§

impl HtmlElement for H3

Source§

const TAG: &'static str = "h3"

Source§

impl HtmlElement for H4

Source§

const TAG: &'static str = "h4"

Source§

impl HtmlElement for H5

Source§

const TAG: &'static str = "h5"

Source§

impl HtmlElement for H6

Source§

const TAG: &'static str = "h6"

Source§

impl HtmlElement for Head

Source§

const TAG: &'static str = "head"

Source§

impl HtmlElement for Header

Source§

const TAG: &'static str = "header"

Source§

impl HtmlElement for Hgroup

Source§

const TAG: &'static str = "hgroup"

Source§

impl HtmlElement for Hr

Source§

const TAG: &'static str = "hr"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Html

Source§

const TAG: &'static str = "html"

Source§

impl HtmlElement for I

Source§

const TAG: &'static str = "i"

Source§

impl HtmlElement for Iframe

Source§

const TAG: &'static str = "iframe"

Source§

impl HtmlElement for Img

Source§

const TAG: &'static str = "img"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Input

Source§

const TAG: &'static str = "input"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Ins

Source§

const TAG: &'static str = "ins"

Source§

impl HtmlElement for Kbd

Source§

const TAG: &'static str = "kbd"

Source§

impl HtmlElement for Label

Source§

const TAG: &'static str = "label"

Source§

impl HtmlElement for Legend

Source§

const TAG: &'static str = "legend"

Source§

impl HtmlElement for Li

Source§

const TAG: &'static str = "li"

Source§

const TAG: &'static str = "link"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Main

Source§

const TAG: &'static str = "main"

Source§

impl HtmlElement for Map

Source§

const TAG: &'static str = "map"

Source§

impl HtmlElement for Mark

Source§

const TAG: &'static str = "mark"

Source§

impl HtmlElement for Math

Source§

const TAG: &'static str = "math"

Source§

impl HtmlElement for Menu

Source§

const TAG: &'static str = "menu"

Source§

impl HtmlElement for Meta

Source§

const TAG: &'static str = "meta"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Meter

Source§

const TAG: &'static str = "meter"

Source§

impl HtmlElement for Nav

Source§

const TAG: &'static str = "nav"

Source§

impl HtmlElement for Noscript

Source§

const TAG: &'static str = "noscript"

Source§

impl HtmlElement for Object

Source§

const TAG: &'static str = "object"

Source§

impl HtmlElement for Ol

Source§

const TAG: &'static str = "ol"

Source§

impl HtmlElement for Optgroup

Source§

const TAG: &'static str = "optgroup"

Source§

impl HtmlElement for Option_

Source§

const TAG: &'static str = "option"

Source§

impl HtmlElement for Output

Source§

const TAG: &'static str = "output"

Source§

impl HtmlElement for P

Source§

const TAG: &'static str = "p"

Source§

impl HtmlElement for Param

Source§

const TAG: &'static str = "param"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Picture

Source§

const TAG: &'static str = "picture"

Source§

impl HtmlElement for Pre

Source§

const TAG: &'static str = "pre"

Source§

impl HtmlElement for Progress

Source§

const TAG: &'static str = "progress"

Source§

impl HtmlElement for Q

Source§

const TAG: &'static str = "q"

Source§

impl HtmlElement for Rp

Source§

const TAG: &'static str = "rp"

Source§

impl HtmlElement for Rt

Source§

const TAG: &'static str = "rt"

Source§

impl HtmlElement for Ruby

Source§

const TAG: &'static str = "ruby"

Source§

impl HtmlElement for S

Source§

const TAG: &'static str = "s"

Source§

impl HtmlElement for Samp

Source§

const TAG: &'static str = "samp"

Source§

impl HtmlElement for Script

Source§

const TAG: &'static str = "script"

Source§

const TAG: &'static str = "search"

Source§

impl HtmlElement for Section

Source§

const TAG: &'static str = "section"

Source§

impl HtmlElement for Select

Source§

const TAG: &'static str = "select"

Source§

impl HtmlElement for Slot

Source§

const TAG: &'static str = "slot"

Source§

impl HtmlElement for Small

Source§

const TAG: &'static str = "small"

Source§

impl HtmlElement for Source

Source§

const TAG: &'static str = "source"

Source§

const VOID: bool = true

Source§

impl HtmlElement for Span

Source§

const TAG: &'static str = "span"

Source§

impl HtmlElement for Strong

Source§

const TAG: &'static str = "strong"

Source§

impl HtmlElement for Style

Source§

const TAG: &'static str = "style"

Source§

impl HtmlElement for Sub

Source§

const TAG: &'static str = "sub"

Source§

impl HtmlElement for Summary

Source§

const TAG: &'static str = "summary"

Source§

impl HtmlElement for Sup

Source§

const TAG: &'static str = "sup"

Source§

impl HtmlElement for Svg

Source§

const TAG: &'static str = "svg"

Source§

impl HtmlElement for Table

Source§

const TAG: &'static str = "table"

Source§

impl HtmlElement for Tbody

Source§

const TAG: &'static str = "tbody"

Source§

impl HtmlElement for Td

Source§

const TAG: &'static str = "td"

Source§

impl HtmlElement for Template

Source§

const TAG: &'static str = "template"

Source§

impl HtmlElement for Textarea

Source§

const TAG: &'static str = "textarea"

Source§

impl HtmlElement for Tfoot

Source§

const TAG: &'static str = "tfoot"

Source§

impl HtmlElement for Th

Source§

const TAG: &'static str = "th"

Source§

impl HtmlElement for Thead

Source§

const TAG: &'static str = "thead"

Source§

impl HtmlElement for Time

Source§

const TAG: &'static str = "time"

Source§

impl HtmlElement for Title

Source§

const TAG: &'static str = "title"

Source§

impl HtmlElement for Tr

Source§

const TAG: &'static str = "tr"

Source§

impl HtmlElement for Track

Source§

const TAG: &'static str = "track"

Source§

const VOID: bool = true

Source§

impl HtmlElement for U

Source§

const TAG: &'static str = "u"

Source§

impl HtmlElement for Ul

Source§

const TAG: &'static str = "ul"

Source§

impl HtmlElement for Var

Source§

const TAG: &'static str = "var"

Source§

impl HtmlElement for Video

Source§

const TAG: &'static str = "video"

Source§

impl HtmlElement for Wbr

Source§

const TAG: &'static str = "wbr"

Source§

const VOID: bool = true