#[repr(u8)]pub enum Tag {
Show 137 variants
A = 0,
Abbr = 1,
Address = 2,
Applet = 3,
Area = 4,
Article = 5,
Aside = 6,
Audio = 7,
B = 8,
Base = 9,
Basefont = 10,
Bdi = 11,
Bdo = 12,
Bgsound = 13,
Big = 14,
Blockquote = 15,
Body = 16,
Br = 17,
Button = 18,
Canvas = 19,
Caption = 20,
Center = 21,
Cite = 22,
Code = 23,
Col = 24,
Colgroup = 25,
Data = 26,
Datalist = 27,
Dd = 28,
Del = 29,
Details = 30,
Dfn = 31,
Dialog = 32,
Dir = 33,
Div = 34,
Dl = 35,
Dt = 36,
Em = 37,
Embed = 38,
Fieldset = 39,
Figcaption = 40,
Figure = 41,
Font = 42,
Footer = 43,
Form = 44,
Frame = 45,
Frameset = 46,
H1 = 47,
H2 = 48,
H3 = 49,
H4 = 50,
H5 = 51,
H6 = 52,
Head = 53,
Header = 54,
Hgroup = 55,
Hr = 56,
Html = 57,
I = 58,
Iframe = 59,
Img = 60,
Input = 61,
Ins = 62,
Kbd = 63,
Keygen = 64,
Label = 65,
Legend = 66,
Li = 67,
Link = 68,
Listing = 69,
Main = 70,
Map = 71,
Mark = 72,
Marquee = 73,
Math = 74,
Menu = 75,
Meta = 76,
Meter = 77,
Nav = 78,
Nobr = 79,
Noembed = 80,
Noframes = 81,
Noscript = 82,
Object = 83,
Ol = 84,
Optgroup = 85,
Option = 86,
Output = 87,
P = 88,
Param = 89,
Picture = 90,
Plaintext = 91,
Pre = 92,
Progress = 93,
Q = 94,
Rb = 95,
Rp = 96,
Rt = 97,
Rtc = 98,
Ruby = 99,
S = 100,
Samp = 101,
Script = 102,
Search = 103,
Section = 104,
Select = 105,
Slot = 106,
Small = 107,
Source = 108,
Span = 109,
Strike = 110,
Strong = 111,
Style = 112,
Sub = 113,
Summary = 114,
Sup = 115,
Svg = 116,
Table = 117,
Tbody = 118,
Td = 119,
Template = 120,
Textarea = 121,
Tfoot = 122,
Th = 123,
Thead = 124,
Time = 125,
Title = 126,
Tr = 127,
Track = 128,
Tt = 129,
U = 130,
Ul = 131,
Var = 132,
Video = 133,
Wbr = 134,
Xmp = 135,
Other = 136,
}Expand description
HTML 标签。不认识的标签是 Tag::Other,名字从 crate::Element::name 取。
Variants§
A = 0
Abbr = 1
Address = 2
Applet = 3
Area = 4
Article = 5
Aside = 6
Audio = 7
B = 8
Base = 9
Basefont = 10
Bdi = 11
Bdo = 12
Bgsound = 13
Big = 14
Blockquote = 15
Body = 16
Br = 17
Button = 18
Canvas = 19
Caption = 20
Center = 21
Cite = 22
Code = 23
Col = 24
Colgroup = 25
Data = 26
Datalist = 27
Dd = 28
Del = 29
Details = 30
Dfn = 31
Dialog = 32
Dir = 33
Div = 34
Dl = 35
Dt = 36
Em = 37
Embed = 38
Fieldset = 39
Figcaption = 40
Figure = 41
Font = 42
Form = 44
Frame = 45
Frameset = 46
H1 = 47
H2 = 48
H3 = 49
H4 = 50
H5 = 51
H6 = 52
Head = 53
Header = 54
Hgroup = 55
Hr = 56
Html = 57
I = 58
Iframe = 59
Img = 60
Input = 61
Ins = 62
Kbd = 63
Keygen = 64
Label = 65
Legend = 66
Li = 67
Link = 68
Listing = 69
Main = 70
Map = 71
Mark = 72
Marquee = 73
Math = 74
Menu = 75
Meta = 76
Meter = 77
Nobr = 79
Noembed = 80
Noframes = 81
Noscript = 82
Object = 83
Ol = 84
Optgroup = 85
Option = 86
Output = 87
P = 88
Param = 89
Picture = 90
Plaintext = 91
Pre = 92
Progress = 93
Q = 94
Rb = 95
Rp = 96
Rt = 97
Rtc = 98
Ruby = 99
S = 100
Samp = 101
Script = 102
Search = 103
Section = 104
Select = 105
Slot = 106
Small = 107
Source = 108
Span = 109
Strike = 110
Strong = 111
Style = 112
Sub = 113
Summary = 114
Sup = 115
Svg = 116
Table = 117
Tbody = 118
Td = 119
Template = 120
Textarea = 121
Tfoot = 122
Th = 123
Thead = 124
Time = 125
Title = 126
Tr = 127
Track = 128
Tt = 129
U = 130
Ul = 131
Var = 132
Video = 133
Wbr = 134
Xmp = 135
Other = 136
不在上面列表里的标签,包括自定义元素和 SVG、MathML 内部的元素。
Implementations§
Trait Implementations§
impl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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