Skip to main content

html

Enum html 

Source
pub enum html {}
Expand description

The shared root every element associated-const hangs off of. Both the built-in define_elements! invocation and user define_elements! invocations impl their per-element traits for this type, so html::div, html::main, and user-defined html::mycustom all live under one namespace and aggregate in html:: autocomplete.

Trait Implementations§

Source§

impl a for html

Source§

const a: ElementBuilder<AElement, (), ()>

Build a <a> element.

Source§

impl abbr for html

Source§

const abbr: ElementBuilder<AbbrElement, (), ()>

Build a <abbr> element.

Source§

impl address for html

Source§

impl animate for html

Source§

impl animateMotion for html

Source§

impl animateTransform for html

Source§

impl annotation for html

Source§

impl annotationXml for html

Source§

impl area for html

Source§

const area: ElementBuilder<AreaElement, (), ()>

Build a <area> element.

Source§

impl article for html

Source§

impl aside for html

Source§

impl audio for html

Source§

impl b for html

Source§

const b: ElementBuilder<BElement, (), ()>

Build a <b> element.

Source§

impl base for html

Source§

const base: ElementBuilder<BaseElement, (), ()>

Build a <base> element.

Source§

impl bdi for html

Source§

const bdi: ElementBuilder<BdiElement, (), ()>

Build a <bdi> element.

Source§

impl bdo for html

Source§

const bdo: ElementBuilder<BdoElement, (), ()>

Build a <bdo> element.

Source§

impl blockquote for html

Source§

impl body for html

Source§

const body: ElementBuilder<BodyElement, (), ()>

Build a <body> element.

Source§

impl br for html

Source§

const br: ElementBuilder<BrElement, (), ()>

Build a <br> element.

Source§

impl button for html

Source§

impl canvas for html

Source§

impl caption for html

Source§

impl circle for html

Source§

impl cite for html

Source§

const cite: ElementBuilder<CiteElement, (), ()>

Build a <cite> element.

Source§

impl clipPath for html

Source§

impl code for html

Source§

const code: ElementBuilder<CodeElement, (), ()>

Build a <code> element.

Source§

impl col for html

Source§

const col: ElementBuilder<ColElement, (), ()>

Build a <col> element.

Source§

impl colgroup for html

Source§

impl data for html

Source§

const data: ElementBuilder<DataElement, (), ()>

Build a <data> element.

Source§

impl datalist for html

Source§

impl dd for html

Source§

const dd: ElementBuilder<DdElement, (), ()>

Build a <dd> element.

Source§

impl defs for html

Source§

const defs: ElementBuilder<DefsElement, (), ()>

Build a <defs> element.

Source§

impl del for html

Source§

const del: ElementBuilder<DelElement, (), ()>

Build a <del> element.

Source§

impl desc for html

Source§

const desc: ElementBuilder<DescElement, (), ()>

Build a <desc> element.

Source§

impl details for html

Source§

impl dfn for html

Source§

const dfn: ElementBuilder<DfnElement, (), ()>

Build a <dfn> element.

Source§

impl dialog for html

Source§

const dialog: ElementBuilder<DialogElement, (), ()>

Build dialog <dialog> element.

Source§

impl discard for html

Source§

impl div for html

Source§

const div: ElementBuilder<DivElement, (), ()>

Build a <div> element.

Part of the HTML namespace. Only works in HTML-compatible renderers

§Definition and Usage
  • The <div> tag defines a division or a section in an HTML document.
  • The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.
  • The <div> tag is easily styled by using the class or id attribute.
  • Any sort of content can be put inside the <div> tag!

Note: By default, browsers always place a line break before and after the <div> element.

§References:
Source§

impl dl for html

Source§

const dl: ElementBuilder<DlElement, (), ()>

Build a <dl> element.

Source§

impl dt for html

Source§

const dt: ElementBuilder<DtElement, (), ()>

Build a <dt> element.

Source§

impl ellipse for html

Source§

impl em for html

Source§

const em: ElementBuilder<EmElement, (), ()>

Build a <em> element.

Source§

impl embed for html

Source§

impl feBlend for html

Source§

impl feColorMatrix for html

Source§

impl feComponentTransfer for html

Source§

impl feComposite for html

Source§

impl feConvolveMatrix for html

Source§

impl feDiffuseLighting for html

Source§

impl feDisplacementMap for html

Source§

impl feDistantLight for html

Source§

impl feDropShadow for html

Source§

impl feFlood for html

Source§

impl feFuncA for html

Source§

impl feFuncB for html

Source§

impl feFuncG for html

Source§

impl feFuncR for html

Source§

impl feGaussianBlur for html

Source§

impl feImage for html

Source§

impl feMerge for html

Source§

impl feMergeNode for html

Source§

impl feMorphology for html

Source§

impl feOffset for html

Source§

impl fePointLight for html

Source§

impl feSpecularLighting for html

Source§

impl feSpotLight for html

Source§

impl feTile for html

Source§

impl feTurbulence for html

Source§

impl fieldset for html

Source§

impl figcaption for html

Source§

impl figure for html

Source§

impl filter for html

Source§

impl foreignObject for html

Source§

impl form for html

Source§

const form: ElementBuilder<FormElement, (), ()>

Build a <form> element.

Source§

impl g for html

Source§

const g: ElementBuilder<GElement, (), ()>

Build a <g> element.

Source§

impl h1 for html

Source§

const h1: ElementBuilder<H1Element, (), ()>

Build a <h1> element.

§About
  • The HTML <h1> element is found within the <body> tag.
  • Headings can range from <h1> to <h6>.
  • The most important heading is <h1> and the least important heading is <h6>.
  • The <h1> heading is the first heading in the document.
  • The <h1> heading is usually a large bolded font.
Source§

impl h2 for html

Source§

const h2: ElementBuilder<H2Element, (), ()>

Build a <h2> element.

§About
  • The HTML <h2> element is found within the <body> tag.
  • Headings can range from <h1> to <h6>.
  • The most important heading is <h1> and the least important heading is <h6>.
  • The <h2> heading is the second heading in the document.
  • The <h2> heading is usually a large bolded font.
Source§

impl h3 for html

Source§

const h3: ElementBuilder<H3Element, (), ()>

Build a <h3> element.

§About
  • The HTML <h1> element is found within the <body> tag.
  • Headings can range from <h1> to <h6>.
  • The most important heading is <h1> and the least important heading is <h6>.
  • The <h1> heading is the first heading in the document.
  • The <h1> heading is usually a large bolded font.
Source§

impl h4 for html

Source§

const h4: ElementBuilder<H4Element, (), ()>

Build a <h4> element.

Source§

impl h5 for html

Source§

const h5: ElementBuilder<H5Element, (), ()>

Build a <h5> element.

Source§

impl h6 for html

Source§

const h6: ElementBuilder<H6Element, (), ()>

Build a <h6> element.

Source§

impl hatch for html

Source§

impl hatchpath for html

Source§

impl head for html

Source§

const head: ElementBuilder<HeadElement, (), ()>

Build a <head> element.

Source§

impl header for html

Source§

impl hgroup for html

Source§

impl hr for html

Source§

const hr: ElementBuilder<HrElement, (), ()>

Build a <hr> element.

Source§

impl i for html

Source§

const i: ElementBuilder<IElement, (), ()>

Build a <i> element.

Source§

impl iframe for html

Source§

impl image for html

Source§

impl img for html

Source§

const img: ElementBuilder<ImgElement, (), ()>

Build a <img> element.

Source§

impl input for html

Source§

impl ins for html

Source§

const ins: ElementBuilder<InsElement, (), ()>

Build a <ins> element.

Source§

impl kbd for html

Source§

const kbd: ElementBuilder<KbdElement, (), ()>

Build a <kbd> element.

Source§

impl label for html

Source§

impl legend for html

Source§

impl li for html

Source§

const li: ElementBuilder<LiElement, (), ()>

Build a <li> element.

Source§

impl line for html

Source§

const line: ElementBuilder<LineElement, (), ()>

Build a <line> element.

Source§

impl linearGradient for html

Build a <link> element.

Source§

impl main for html

Source§

const main: ElementBuilder<MainElement, (), ()>

Build a <main> element.

Source§

impl map for html

Source§

const map: ElementBuilder<MapElement, (), ()>

Build a <map> element.

Source§

impl mark for html

Source§

const mark: ElementBuilder<MarkElement, (), ()>

Build a <mark> element.

Source§

impl marker for html

Source§

impl mask for html

Source§

const mask: ElementBuilder<MaskElement, (), ()>

Build a <mask> element.

Source§

impl math for html

Source§

const math: ElementBuilder<MathElement, (), ()>

Build a <math> element.

Source§

impl menu for html

Source§

const menu: ElementBuilder<MenuElement, (), ()>

Build a <menu> element.

Source§

impl merror for html

Source§

impl meta for html

Source§

const meta: ElementBuilder<MetaElement, (), ()>

Build a <meta> element.

Source§

impl metadata for html

Source§

impl meter for html

Source§

impl mfrac for html

Source§

impl mi for html

Source§

const mi: ElementBuilder<MiElement, (), ()>

Build a <mi> element.

Source§

impl mmultiscripts for html

Source§

impl mn for html

Source§

const mn: ElementBuilder<MnElement, (), ()>

Build a <mn> element.

Source§

impl mo for html

Source§

const mo: ElementBuilder<MoElement, (), ()>

Build a <mo> element.

Source§

impl mover for html

Source§

impl mpadded for html

Source§

impl mpath for html

Source§

impl mphantom for html

Source§

impl mprescripts for html

Source§

impl mroot for html

Source§

impl mrow for html

Source§

const mrow: ElementBuilder<MrowElement, (), ()>

Build a <mrow> element.

Source§

impl ms for html

Source§

const ms: ElementBuilder<MsElement, (), ()>

Build a <ms> element.

Source§

impl mspace for html

Source§

impl msqrt for html

Source§

impl mstyle for html

Source§

impl msub for html

Source§

const msub: ElementBuilder<MsubElement, (), ()>

Build a <msub> element.

Source§

impl msubsup for html

Source§

impl msup for html

Source§

const msup: ElementBuilder<MsupElement, (), ()>

Build a <msup> element.

Source§

impl mtable for html

Source§

impl mtd for html

Source§

const mtd: ElementBuilder<MtdElement, (), ()>

Build a <mtd> element.

Source§

impl mtext for html

Source§

impl mtr for html

Source§

const mtr: ElementBuilder<MtrElement, (), ()>

Build a <mtr> element.

Source§

impl munder for html

Source§

impl munderover for html

Source§

impl nav for html

Source§

const nav: ElementBuilder<NavElement, (), ()>

Build a <nav> element.

Source§

impl noscript for html

Source§

impl object for html

Source§

impl ol for html

Source§

const ol: ElementBuilder<OlElement, (), ()>

Build a <ol> element.

Source§

impl optgroup for html

Source§

impl option for html

Source§

impl output for html

Source§

impl p for html

Source§

const p: ElementBuilder<PElement, (), ()>

Build a <p> element.

Source§

impl param for html

Source§

impl path for html

Source§

const path: ElementBuilder<PathElement, (), ()>

Build a <path> element.

Source§

impl pattern for html

Source§

impl picture for html

Source§

impl polygon for html

Source§

impl polyline for html

Source§

impl pre for html

Source§

const pre: ElementBuilder<PreElement, (), ()>

Build a <pre> element.

Source§

impl progress for html

Source§

impl q for html

Source§

const q: ElementBuilder<QElement, (), ()>

Build a <q> element.

Source§

impl radialGradient for html

Source§

impl rect for html

Source§

const rect: ElementBuilder<RectElement, (), ()>

Build a <rect> element.

Source§

impl rp for html

Source§

const rp: ElementBuilder<RpElement, (), ()>

Build a <rp> element.

Source§

impl rt for html

Source§

const rt: ElementBuilder<RtElement, (), ()>

Build a <rt> element.

Source§

impl ruby for html

Source§

const ruby: ElementBuilder<RubyElement, (), ()>

Build a <ruby> element.

Source§

impl s for html

Source§

const s: ElementBuilder<SElement, (), ()>

Build a <s> element.

Source§

impl samp for html

Source§

const samp: ElementBuilder<SampElement, (), ()>

Build a <samp> element.

Source§

impl script for html

Source§

const script: ElementBuilder<ScriptElement, (), ()>

Build a <script> element.

The script HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The script element can also be used with other languages, such as WebGL’s GLSL shader programming language and JSON.

Source§

impl section for html

Source§

impl select for html

Source§

impl semantics for html

Source§

impl set for html

Source§

const set: ElementBuilder<SetElement, (), ()>

Build a <set> element.

Source§

impl slot for html

Source§

const slot: ElementBuilder<SlotElement, (), ()>

Build a <slot> element.

Source§

impl small for html

Source§

impl source for html

Source§

impl span for html

Source§

const span: ElementBuilder<SpanElement, (), ()>

Build a <span> element.

Source§

impl stop for html

Source§

const stop: ElementBuilder<StopElement, (), ()>

Build a <stop> element.

Source§

impl strong for html

Source§

impl style for html

Source§

impl sub for html

Source§

const sub: ElementBuilder<SubElement, (), ()>

Build a <sub> element.

Source§

impl summary for html

Source§

impl sup for html

Source§

const sup: ElementBuilder<SupElement, (), ()>

Build a <sup> element.

Source§

impl svg for html

Source§

const svg: ElementBuilder<SvgElement, (), ()>

Build a <svg> element.

Source§

impl switch for html

Source§

impl symbol for html

Source§

impl table for html

Source§

impl tbody for html

Source§

impl td for html

Source§

const td: ElementBuilder<TdElement, (), ()>

Build a <td> element.

Source§

impl template for html

Source§

impl text for html

Source§

const text: ElementBuilder<TextElement, (), ()>

Build a <text> element.

Source§

impl textPath for html

Source§

impl textarea for html

Source§

impl tfoot for html

Source§

impl th for html

Source§

const th: ElementBuilder<ThElement, (), ()>

Build a <th> element.

Source§

impl thead for html

Source§

impl time for html

Source§

const time: ElementBuilder<TimeElement, (), ()>

Build a <time> element.

Source§

impl title for html

Source§

impl tr for html

Source§

const tr: ElementBuilder<TrElement, (), ()>

Build a <tr> element.

Source§

impl track for html

Source§

impl tspan for html

Source§

impl u for html

Source§

const u: ElementBuilder<UElement, (), ()>

Build a <u> element.

Source§

impl ul for html

Source§

const ul: ElementBuilder<UlElement, (), ()>

Build a <ul> element.

Source§

impl use for html

Source§

impl var for html

Source§

const var: ElementBuilder<VarElement, (), ()>

Build a <var> element.

Source§

impl video for html

Source§

impl view for html

Source§

const view: ElementBuilder<ViewElement, (), ()>

Build a <view> element.

Source§

impl wbr for html

Source§

const wbr: ElementBuilder<WbrElement, (), ()>

Build a <wbr> element.

Auto Trait Implementations§

§

impl Freeze for html

§

impl RefUnwindSafe for html

§

impl Send for html

§

impl Sync for html

§

impl Unpin for html

§

impl UnsafeUnpin for html

§

impl UnwindSafe for html

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<Ret> SpawnIfAsync<(), Ret> for Ret

Source§

fn spawn(self) -> Ret

Spawn the value into the dioxus runtime if it is an async block
Source§

impl<T, O> SuperFrom<T> for O
where O: From<T>,

Source§

fn super_from(input: T) -> O

Convert from a type to another type.
Source§

impl<T, O, M> SuperInto<O, M> for T
where O: SuperFrom<T, M>,

Source§

fn super_into(self) -> O

Convert from a type to another type.
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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