#[repr(u8)]pub enum TagId {
Show 113 variants
Unknown = 0,
A = 1,
Abbr = 2,
Address = 3,
Area = 4,
Article = 5,
Aside = 6,
Audio = 7,
B = 8,
Base = 9,
Bdi = 10,
Bdo = 11,
Blockquote = 12,
Body = 13,
Br = 14,
Button = 15,
Canvas = 16,
Caption = 17,
Cite = 18,
Code = 19,
Col = 20,
Colgroup = 21,
Data = 22,
Datalist = 23,
Dd = 24,
Del = 25,
Details = 26,
Dfn = 27,
Dialog = 28,
Div = 29,
Dl = 30,
Dt = 31,
Em = 32,
Embed = 33,
Fieldset = 34,
Figcaption = 35,
Figure = 36,
Footer = 37,
Form = 38,
H1 = 39,
H2 = 40,
H3 = 41,
H4 = 42,
H5 = 43,
H6 = 44,
Head = 45,
Header = 46,
Hgroup = 47,
Hr = 48,
Html = 49,
I = 50,
Iframe = 51,
Img = 52,
Input = 53,
Ins = 54,
Kbd = 55,
Label = 56,
Legend = 57,
Li = 58,
Link = 59,
Main = 60,
Map = 61,
Mark = 62,
Menu = 63,
Meta = 64,
Meter = 65,
Nav = 66,
Noscript = 67,
Object = 68,
Ol = 69,
Optgroup = 70,
Option = 71,
Output = 72,
P = 73,
Param = 74,
Picture = 75,
Pre = 76,
Progress = 77,
Q = 78,
Rp = 79,
Rt = 80,
Ruby = 81,
S = 82,
Samp = 83,
Script = 84,
Section = 85,
Select = 86,
Slot = 87,
Small = 88,
Source = 89,
Span = 90,
Strong = 91,
Style = 92,
Sub = 93,
Summary = 94,
Sup = 95,
Table = 96,
Tbody = 97,
Td = 98,
Template = 99,
Textarea = 100,
Tfoot = 101,
Th = 102,
Thead = 103,
Time = 104,
Title = 105,
Tr = 106,
Track = 107,
U = 108,
Ul = 109,
Var = 110,
Video = 111,
Wbr = 112,
}Expand description
Interned tag identifier for common HTML5 elements.
Known tags use a u8 discriminant for O(1) comparison. Unknown/custom tags fall back to string comparison.
Variants§
Unknown = 0
A = 1
Abbr = 2
Address = 3
Area = 4
Article = 5
Aside = 6
Audio = 7
B = 8
Base = 9
Bdi = 10
Bdo = 11
Blockquote = 12
Body = 13
Br = 14
Button = 15
Canvas = 16
Caption = 17
Cite = 18
Code = 19
Col = 20
Colgroup = 21
Data = 22
Datalist = 23
Dd = 24
Del = 25
Details = 26
Dfn = 27
Dialog = 28
Div = 29
Dl = 30
Dt = 31
Em = 32
Embed = 33
Fieldset = 34
Figcaption = 35
Figure = 36
Form = 38
H1 = 39
H2 = 40
H3 = 41
H4 = 42
H5 = 43
H6 = 44
Head = 45
Header = 46
Hgroup = 47
Hr = 48
Html = 49
I = 50
Iframe = 51
Img = 52
Input = 53
Ins = 54
Kbd = 55
Label = 56
Legend = 57
Li = 58
Link = 59
Main = 60
Map = 61
Mark = 62
Menu = 63
Meta = 64
Meter = 65
Noscript = 67
Object = 68
Ol = 69
Optgroup = 70
Option = 71
Output = 72
P = 73
Param = 74
Picture = 75
Pre = 76
Progress = 77
Q = 78
Rp = 79
Rt = 80
Ruby = 81
S = 82
Samp = 83
Script = 84
Section = 85
Select = 86
Slot = 87
Small = 88
Source = 89
Span = 90
Strong = 91
Style = 92
Sub = 93
Summary = 94
Sup = 95
Table = 96
Tbody = 97
Td = 98
Template = 99
Textarea = 100
Tfoot = 101
Th = 102
Thead = 103
Time = 104
Title = 105
Tr = 106
Track = 107
U = 108
Ul = 109
Var = 110
Video = 111
Wbr = 112
Implementations§
Trait Implementations§
impl Copy for TagId
impl Eq for TagId
impl StructuralPartialEq for TagId
Auto Trait Implementations§
impl Freeze for TagId
impl RefUnwindSafe for TagId
impl Send for TagId
impl Sync for TagId
impl Unpin for TagId
impl UnwindSafe for TagId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more