Tag

Enum Tag 

Source
pub enum Tag {
Show 108 variants A, Abbr, Address, Article, Aside, Audio, B, Base, Bdi, Bdo, Blockquote, Body, Br, Button, Caption, Cite, Code, Col, Colgroup, Data, Datalist, Dd, Del, Details, Dfn, Dialog, Div, Dl, Dt, Em, Embed, Fieldset, Figcaption, Figure, Footer, Form, H1, H2, H3, H4, H5, H6, Head, Header, Hr, Html, I, Iframe, Img, Input, Ins, Kbd, Label, Legend, Li, Link, Main, Map, Mark, Meta, Meter, Nav, Noscript, Object, Ol, Optgroup, Option, Output, P, Param, Picture, Pre, Progress, Q, Rp, Rt, Ruby, S, Samp, Script, Section, Select, Small, Source, Span, Strong, Style, Sub, Summary, Sup, Svg, Table, Tbody, Td, Template, Textarea, Tfoot, Th, Thead, Time, Title, Tr, Track, U, Ul, Var, Video, Wbr,
}
Expand description

Html tag for Element and DomElement

Variants§

§

A

Html tag

§

Abbr

Html tag

§

Address

Html tag

§

Article

Html tag

§

Aside

Html tag

§

Audio

Html tag

§

B

Html tag

§

Base

Html tag

§

Bdi

Html tag

§

Bdo

Html tag

§

Blockquote

Html tag

§

Body

Html tag

§

Br

Html tag

§

Button

Html tag

§

Caption

Html tag

§

Cite

Html tag

§

Code

Html tag

§

Col

Html tag

§

Colgroup

Html tag

§

Data

Html tag

§

Datalist

Html tag

§

Dd

Html tag

§

Del

Html tag

§

Details

Html tag

§

Dfn

Html tag

§

Dialog

Html tag

§

Div

Html tag

§

Dl

Html tag

§

Dt

Html tag

§

Em

Html tag

§

Embed

Html tag

§

Fieldset

Html tag

§

Figcaption

Html tag

§

Figure

Html tag

§

Footer

Html tag

§

Form

Html tag

§

H1

Html tag

§

H2

Html tag

§

H3

Html tag

§

H4

Html tag

§

H5

Html tag

§

H6

Html tag

§

Head

Html tag

§

Header

Html tag

§

Hr

Html tag

§

Html

Html tag

§

I

Html tag

§

Iframe

Html tag

§

Img

Html tag

§

Input

Html tag

§

Ins

Html tag

§

Kbd

Html tag

§

Label

Html tag

§

Legend

Html tag

§

Li

Html tag

Html tag

§

Main

Html tag

§

Map

Html tag

§

Mark

Html tag

§

Meta

Html tag

§

Meter

Html tag

§

Nav

Html tag

§

Noscript

Html tag

§

Object

Html tag

§

Ol

Html tag

§

Optgroup

Html tag

§

Option

Html tag

§

Output

Html tag

§

P

Html tag

§

Param

Html tag

§

Picture

Html tag

§

Pre

Html tag

§

Progress

Html tag

§

Q

Html tag

§

Rp

Html tag

§

Rt

Html tag

§

Ruby

Html tag

§

S

Html tag

§

Samp

Html tag

§

Script

Html tag

§

Section

Html tag

§

Select

Html tag

§

Small

Html tag

§

Source

Html tag

§

Span

Html tag

§

Strong

Html tag

§

Style

Html tag

§

Sub

Html tag

§

Summary

Html tag

§

Sup

Html tag

§

Svg

Html tag

§

Table

Html tag

§

Tbody

Html tag

§

Td

Html tag

§

Template

Html tag

§

Textarea

Html tag

§

Tfoot

Html tag

§

Th

Html tag

§

Thead

Html tag

§

Time

Html tag

§

Title

Html tag

§

Tr

Html tag

§

Track

Html tag

§

U

Html tag

§

Ul

Html tag

§

Var

Html tag

§

Video

Html tag

§

Wbr

Html tag

Implementations§

Source§

impl Tag

Source

pub fn is_void(&self) -> bool

An element which does not need a trailing slash when self-closing

Example: - <br> - Void element - <div/> - Not a void element

Trait Implementations§

Source§

impl Clone for Tag

Source§

fn clone(&self) -> Tag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Tag

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for Tag

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Into<&'static str> for Tag

Source§

fn into(self) -> &'static str

Converts this type into the (usually inferred) input type.
Source§

impl TryFrom<&str> for Tag

Source§

type Error = ()

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

fn try_from(value: &str) -> Result<Tag, <Tag as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy 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 UnwindSafe for Tag

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V