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
// Parse the <html> tags and collect the results into a vector of strings
let new_vector = tag.parse_tags(&buf);

Tuple Fields§

§0: &'static str

Implementations§

Source§

impl HtmlTag

Source

pub const A: HtmlTag

This represents the html tag: a

Source

pub const ABBR: HtmlTag

This represents the html tag: abbr

Source

pub const ACRONYM: HtmlTag

This represents the html tag: acronym

Source

pub const ADDRESS: HtmlTag

This represents the html tag: address

Source

pub const APPLET: HtmlTag

This represents the html tag: applet

Source

pub const AREA: HtmlTag

This represents the html tag: area

Source

pub const ARTICLE: HtmlTag

This represents the html tag: article

Source

pub const ASIDE: HtmlTag

This represents the html tag: aside

Source

pub const AUDIO: HtmlTag

This represents the html tag: audio

Source

pub const B: HtmlTag

This represents the html tag: b

Source

pub const BASE: HtmlTag

This represents the html tag: base

Source

pub const BASEFONT: HtmlTag

This represents the html tag: basefont

Source

pub const BDI: HtmlTag

This represents the html tag: bdi

Source

pub const BDO: HtmlTag

This represents the html tag: bdo

Source

pub const BIG: HtmlTag

This represents the html tag: big

Source

pub const BLOCKQUOTE: HtmlTag

This represents the html tag: blockquote

Source

pub const BODY: HtmlTag

This represents the html tag: body

Source

pub const BR: HtmlTag

This represents the html tag: br

Source

pub const BUTTON: HtmlTag

This represents the html tag: button

Source

pub const CANVAS: HtmlTag

This represents the html tag: canvas

Source

pub const CAPTION: HtmlTag

This represents the html tag: caption

Source

pub const CENTER: HtmlTag

This represents the html tag: center

Source

pub const CITE: HtmlTag

This represents the html tag: cite

Source

pub const CODE: HtmlTag

This represents the html tag: code

Source

pub const COL: HtmlTag

This represents the html tag: col

Source

pub const COLGROUP: HtmlTag

This represents the html tag: colgroup

Source

pub const DATALIST: HtmlTag

This represents the html tag: datalist

Source

pub const DD: HtmlTag

This represents the html tag: dd

Source

pub const DEL: HtmlTag

This represents the html tag: del

Source

pub const DETAILS: HtmlTag

This represents the html tag: details

Source

pub const DFN: HtmlTag

This represents the html tag: dfn

Source

pub const DIR: HtmlTag

This represents the html tag: dir

Source

pub const DIV: HtmlTag

This represents the html tag: div

Source

pub const DL: HtmlTag

This represents the html tag: dl

Source

pub const DT: HtmlTag

This represents the html tag: dt

Source

pub const EM: HtmlTag

This represents the html tag: em

Source

pub const EMBED: HtmlTag

This represents the html tag: embed

Source

pub const FIELDSET: HtmlTag

This represents the html tag: fieldset

Source

pub const FIGCAPTION: HtmlTag

This represents the html tag: figcaption

Source

pub const FIGURE: HtmlTag

This represents the html tag: figure

Source

pub const FONT: HtmlTag

This represents the html tag: font

Source

pub const FOOTER: HtmlTag

This represents the html tag: footer

Source

pub const FORM: HtmlTag

This represents the html tag: form

Source

pub const FRAME: HtmlTag

This represents the html tag: frame

Source

pub const FRAMESET: HtmlTag

This represents the html tag: frameset

Source

pub const H1: HtmlTag

This represents the html tag: h1

Source

pub const H2: HtmlTag

This represents the html tag: h2

Source

pub const H3: HtmlTag

This represents the html tag: h3

Source

pub const H4: HtmlTag

This represents the html tag: h4

Source

pub const H5: HtmlTag

This represents the html tag: h5

Source

pub const H6: HtmlTag

This represents the html tag: h6

Source

pub const HEAD: HtmlTag

This represents the html tag: head

Source

pub const HEADER: HtmlTag

This represents the html tag: header

Source

pub const HR: HtmlTag

This represents the html tag: hr

Source

pub const HTML: HtmlTag

This represents the html tag: html

Source

pub const I: HtmlTag

This represents the html tag: i

Source

pub const IFRAME: HtmlTag

This represents the html tag: iframe

Source

pub const IMG: HtmlTag

This represents the html tag: img

Source

pub const INPUT: HtmlTag

This represents the html tag: input

Source

pub const INS: HtmlTag

This represents the html tag: ins

Source

pub const KBD: HtmlTag

This represents the html tag: kbd

Source

pub const KEYGEN: HtmlTag

This represents the html tag: keygen

Source

pub const LABEL: HtmlTag

This represents the html tag: label

Source

pub const LEGEND: HtmlTag

This represents the html tag: legend

Source

pub const LI: HtmlTag

This represents the html tag: li

This represents the html tag: link

Source

pub const MAIN: HtmlTag

This represents the html tag: main

Source

pub const MAP: HtmlTag

This represents the html tag: map

Source

pub const MARK: HtmlTag

This represents the html tag: mark

Source

pub const MENU: HtmlTag

This represents the html tag: menu

Source

pub const MENUITEM: HtmlTag

This represents the html tag: menuitem

Source

pub const META: HtmlTag

This represents the html tag: meta

Source

pub const METER: HtmlTag

This represents the html tag: meter

Source

pub const NAV: HtmlTag

This represents the html tag: nav

Source

pub const NOFRAMES: HtmlTag

This represents the html tag: noframes

Source

pub const NOSCRIPT: HtmlTag

This represents the html tag: noscript

Source

pub const OBJECT: HtmlTag

This represents the html tag: object

Source

pub const OL: HtmlTag

This represents the html tag: ol

Source

pub const OPTGROUP: HtmlTag

This represents the html tag: optgroup

Source

pub const OPTION: HtmlTag

This represents the html tag: option

Source

pub const OUTPUT: HtmlTag

This represents the html tag: output

Source

pub const P: HtmlTag

This represents the html tag: p

Source

pub const PARAM: HtmlTag

This represents the html tag: param

Source

pub const PRE: HtmlTag

This represents the html tag: pre

Source

pub const PROGRESS: HtmlTag

This represents the html tag: progress

Source

pub const Q: HtmlTag

This represents the html tag: q

Source

pub const S: HtmlTag

This represents the html tag: s

Source

pub const SAMP: HtmlTag

This represents the html tag: samp

Source

pub const SCRIPT: HtmlTag

This represents the html tag: script

Source

pub const SECTION: HtmlTag

This represents the html tag: section

Source

pub const SELECT: HtmlTag

This represents the html tag: select

Source

pub const SMALL: HtmlTag

This represents the html tag: small

Source

pub const SOURCE: HtmlTag

This represents the html tag: source

Source

pub const SPAN: HtmlTag

This represents the html tag: span

Source

pub const STRIKE: HtmlTag

This represents the html tag: strike

Source

pub const STRONG: HtmlTag

This represents the html tag: strong

Source

pub const STYLE: HtmlTag

This represents the html tag: style

Source

pub const SUB: HtmlTag

This represents the html tag: sub

Source

pub const SUMMARY: HtmlTag

This represents the html tag: summary

Source

pub const SUP: HtmlTag

This represents the html tag: sup

Source

pub const TABLE: HtmlTag

This represents the html tag: table

Source

pub const TBODY: HtmlTag

This represents the html tag: tbody

Source

pub const TD: HtmlTag

This represents the html tag: td

Source

pub const TEXTAREA: HtmlTag

This represents the html tag: textarea

Source

pub const TFOOT: HtmlTag

This represents the html tag: tfoot

Source

pub const TH: HtmlTag

This represents the html tag: th

Source

pub const THEAD: HtmlTag

This represents the html tag: thead

Source

pub const TIME: HtmlTag

This represents the html tag: time

Source

pub const TITLE: HtmlTag

This represents the html tag: title

Source

pub const TR: HtmlTag

This represents the html tag: tr

Source

pub const TRACK: HtmlTag

This represents the html tag: track

Source

pub const TT: HtmlTag

This represents the html tag: tt

Source

pub const U: HtmlTag

This represents the html tag: u

Source

pub const UL: HtmlTag

This represents the html tag: ul

Source

pub const VAR: HtmlTag

This represents the html tag: var

Source

pub const VIDEO: HtmlTag

This represents the html tag: video

Source

pub fn parse_tags(&self, input: &str) -> Vec<String>

This gets the content inside the specified tag

Trait Implementations§

Source§

impl Display for HtmlTag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,