Enum seed::dom_types::Tag

source ·
pub enum Tag {
Show 114 variants Address, Article, Aside, Footer, Header, H1, H2, H3, H4, H5, H6, Hgroup, Main, Nav, Section, BlockQuote, Dd, Dir, Div, Dl, Dt, FigCaption, Figure, Hr, Li, Ol, P, Pre, Ul, A, Abbr, B, Bdi, Bdo, Br, Cite, Code, Data, Dfn, Em, I, Kbd, Mark, Q, Rb, Rp, Rt, Rtc, Ruby, S, Samp, Small, Span, Strong, Sub, Sup, Time, Tt, U, Var, Wbr, Area, Audio, Img, Map, Track, Video, Applet, Embed, Iframe, NoEmbed, Object, Param, Picture, Source, Canvas, NoScript, Script, Del, Ins, Caption, Col, ColGroup, Table, Tbody, Td, Tfoot, Th, Thead, Tr, Button, DataList, FieldSet, Form, Input, Label, Legend, Meter, OptGroup, Option, Output, Progress, Select, TextArea, Details, Dialog, Menu, MenuItem, Summary, Content, Element, Shadow, Slot, Template,
}
Expand description

The Tag enum restricts element-creation to only valid tags, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element

Variants

Address

Article

Aside

Footer

Header

H1

H2

H3

H4

H5

H6

Hgroup

Main

Nav

Section

BlockQuote

Dd

Dir

Div

Dl

Dt

FigCaption

Figure

Hr

Li

Ol

P

Pre

Ul

A

Abbr

B

Bdi

Bdo

Br

Cite

Code

Data

Dfn

Em

I

Kbd

Mark

Q

Rb

Rp

Rt

Rtc

Ruby

S

Samp

Small

Span

Strong

Sub

Sup

Time

Tt

U

Var

Wbr

Area

Audio

Img

Map

Track

Video

Applet

Embed

Iframe

NoEmbed

Object

Param

Picture

Source

Canvas

NoScript

Script

Del

Ins

Caption

Col

ColGroup

Table

Tbody

Td

Tfoot

Th

Thead

Tr

Button

DataList

FieldSet

Form

Input

Label

Legend

Meter

OptGroup

Option

Output

Progress

Select

TextArea

Details

Dialog

Menu

MenuItem

Summary

Content

Element

Shadow

Slot

Template

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.