pub enum Element {
Show 134 variants
a,
abbr,
acronym,
address,
applet,
area,
article,
aside,
audio,
b,
base,
bdi,
bdo,
bgsound,
big,
blink,
blockquote,
body,
br,
button,
canvas,
caption,
center,
cite,
code,
col,
colgroup,
content,
data,
datalist,
dd,
del,
details,
dfn,
dialog,
dir,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
frame,
frameset,
h1,
head,
header,
hgroup,
hr,
html,
i,
iframe,
image,
img,
input,
ins,
kbd,
keygen,
label,
legend,
li,
link,
main,
map,
mark,
marquee,
menu,
menuitem,
meta,
meter,
nav,
nobr,
noembed,
noframes,
noscript,
object,
ol,
optgroup,
option,
output,
p,
param,
picture,
plaintext,
portal,
pre,
progress,
q,
rb,
rp,
rt,
rtc,
ruby,
s,
samp,
script,
section,
select,
shadow,
slot,
small,
source,
spacer,
span,
strike,
strong,
style,
sub,
summary,
sup,
table,
tbody,
td,
template,
textarea,
tfoot,
th,
thead,
time,
title,
tr,
track,
tt,
u,
ul,
var,
video,
wbr,
xmp,
}Expand description
All built-in elements These are the element can be encoded with a single byte so they are more efficient (but less flexable) than a &str element
Variants§
a
abbr
acronym
address
applet
area
article
aside
audio
b
base
bdi
bdo
bgsound
big
blink
blockquote
body
br
canvas
caption
center
cite
code
col
colgroup
content
data
datalist
dd
del
details
dfn
dialog
dir
div
dl
dt
em
embed
fieldset
figcaption
figure
font
form
frame
frameset
h1
head
header
hgroup
hr
html
i
iframe
image
img
input
ins
kbd
keygen
label
legend
li
link
main
map
mark
marquee
meta
meter
nobr
noembed
noframes
noscript
object
ol
optgroup
option
output
p
param
picture
plaintext
portal
pre
progress
q
rb
rp
rt
rtc
ruby
s
samp
script
section
select
shadow
slot
small
source
spacer
span
strike
strong
style
sub
summary
sup
table
tbody
td
template
textarea
tfoot
th
thead
time
title
tr
track
tt
u
ul
var
video
wbr
xmp
Implementations§
Source§impl<'a, 'b> Element
impl<'a, 'b> Element
pub const fn any_element_const(self) -> AnyElement<'a, 'b>
Trait Implementations§
Source§impl<'a, 'b> From<Element> for AnyElement<'a, 'b>
impl<'a, 'b> From<Element> for AnyElement<'a, 'b>
Source§impl<'a, 'b> IntoElement<'a, 'b> for Element
impl<'a, 'b> IntoElement<'a, 'b> for Element
Source§const SINGLE_BYTE: bool = true
const SINGLE_BYTE: bool = true
If the element name can be encoded in a single byte
Source§impl WithNsExt for Element
impl WithNsExt for Element
Source§fn in_namespace(self, namespace: &str) -> InNamespace<'_, Self>where
Self: Sized,
fn in_namespace(self, namespace: &str) -> InNamespace<'_, Self>where
Self: Sized,
Moves the item into a namespace
impl Copy for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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