pub enum WebElement {
Show 18 variants
P,
Nav,
Header,
Footer,
Main,
Article,
Section,
Aside,
Ul,
Ol,
Li,
Strong,
Em,
Blockquote,
Figure,
Figcaption,
Time,
Address,
}Expand description
The HTML element the web draws a view or text as (web={{ element }}),
for what role cannot say: paragraphs, landmarks, lists, emphasis, …
Headings come from role="header" with accessibilityLevel and links
from a Link with an href, everywhere. Only the web reads it; the
layout, styles and events stay the view’s.
Variants§
P
A paragraph (<p>).
Navigation links (<nav>).
Header
The header of the page or a section (<header>), a landmark; a
heading is role="header".
The footer of the page or a section (<footer>).
Main
The page’s main content (<main>).
Article
A self-contained composition (<article>).
Section
A section of a document (<section>).
Aside
Content aside from the main content (<aside>).
Ul
An unordered list (<ul>).
Ol
An ordered list (<ol>).
Li
An item of a list (<li>).
Strong
Strong importance (<strong>).
Em
Emphasis (<em>).
Blockquote
A quotation (<blockquote>).
Figure
A figure (<figure>).
Figcaption
A figure’s caption (<figcaption>).
Time
A date or time (<time>).
Address
Contact information (<address>).
Trait Implementations§
Source§impl Clone for WebElement
impl Clone for WebElement
impl Copy for WebElement
Source§impl Debug for WebElement
impl Debug for WebElement
impl Eq for WebElement
Source§impl HostValue for WebElement
impl HostValue for WebElement
Source§impl JsValue for WebElement
impl JsValue for WebElement
Source§impl PartialEq for WebElement
impl PartialEq for WebElement
Source§impl PropEnum for WebElement
impl PropEnum for WebElement
impl StructuralPartialEq for WebElement
Auto Trait Implementations§
impl Forget for WebElement
impl Freeze for WebElement
impl Move for WebElement
impl RefUnwindSafe for WebElement
impl Send for WebElement
impl Sync for WebElement
impl Unpin for WebElement
impl UnsafeUnpin for WebElement
impl UnwindSafe for WebElement
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
Source§impl<T> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
names (name: string, amount: number), or without names value for one and a, b, … for
several.