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
impl StructuralPartialEq for Tag
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more