Struct HtmlTag
Source pub struct HtmlTag(pub &'static str);
Expand description
You can use this struct to get the elements inside a tag, by the tag name
§Example
let tag = HtmlTag::HTML
let new_vector = tag.parse_tags(&buf);
This represents the html tag: a
This represents the html tag: abbr
This represents the html tag: acronym
This represents the html tag: address
This represents the html tag: applet
This represents the html tag: area
This represents the html tag: article
This represents the html tag: aside
This represents the html tag: audio
This represents the html tag: b
This represents the html tag: base
This represents the html tag: basefont
This represents the html tag: bdi
This represents the html tag: bdo
This represents the html tag: big
This represents the html tag: blockquote
This represents the html tag: body
This represents the html tag: br
This represents the html tag: button
This represents the html tag: canvas
This represents the html tag: caption
This represents the html tag: center
This represents the html tag: cite
This represents the html tag: code
This represents the html tag: col
This represents the html tag: colgroup
This represents the html tag: datalist
This represents the html tag: dd
This represents the html tag: del
This represents the html tag: details
This represents the html tag: dfn
This represents the html tag: dir
This represents the html tag: div
This represents the html tag: dl
This represents the html tag: dt
This represents the html tag: em
This represents the html tag: embed
This represents the html tag: fieldset
This represents the html tag: figcaption
This represents the html tag: figure
This represents the html tag: font
This represents the html tag: footer
This represents the html tag: form
This represents the html tag: frame
This represents the html tag: frameset
This represents the html tag: h1
This represents the html tag: h2
This represents the html tag: h3
This represents the html tag: h4
This represents the html tag: h5
This represents the html tag: h6
This represents the html tag: head
This represents the html tag: header
This represents the html tag: hr
This represents the html tag: html
This represents the html tag: i
This represents the html tag: iframe
This represents the html tag: img
This represents the html tag: input
This represents the html tag: ins
This represents the html tag: kbd
This represents the html tag: keygen
This represents the html tag: label
This represents the html tag: legend
This represents the html tag: li
This represents the html tag: link
This represents the html tag: main
This represents the html tag: map
This represents the html tag: mark
This represents the html tag: menu
This represents the html tag: menuitem
This represents the html tag: meta
This represents the html tag: meter
This represents the html tag: nav
This represents the html tag: noframes
This represents the html tag: noscript
This represents the html tag: object
This represents the html tag: ol
This represents the html tag: optgroup
This represents the html tag: option
This represents the html tag: output
This represents the html tag: p
This represents the html tag: param
This represents the html tag: pre
This represents the html tag: progress
This represents the html tag: q
This represents the html tag: s
This represents the html tag: samp
This represents the html tag: script
This represents the html tag: section
This represents the html tag: select
This represents the html tag: small
This represents the html tag: source
This represents the html tag: span
This represents the html tag: strike
This represents the html tag: strong
This represents the html tag: style
This represents the html tag: sub
This represents the html tag: summary
This represents the html tag: sup
This represents the html tag: table
This represents the html tag: tbody
This represents the html tag: td
This represents the html tag: textarea
This represents the html tag: tfoot
This represents the html tag: th
This represents the html tag: thead
This represents the html tag: time
This represents the html tag: title
This represents the html tag: tr
This represents the html tag: track
This represents the html tag: tt
This represents the html tag: u
This represents the html tag: ul
This represents the html tag: var
This represents the html tag: video
This gets the content inside the specified tag
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Converts the given value to a
String
.
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.