Enum build_html::ContainerType
source · #[non_exhaustive]
pub enum ContainerType {
Address,
Article,
Div,
Footer,
Header,
Main,
OrderedList,
UnorderedList,
Nav,
Section,
}
Expand description
The different types of HTML containers that can be added to the page
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Address
Corresponds to <address>
tags
Article
Corresponds to <article>
tags
Div
Corresponds to <div>
tags
This type is also the default for Container
s
Corresponds to <footer>
tags
Header
Corresponds to <header>
tags
Main
Corresponds to <main>
tags
OrderedList
Corresponds to <ol>
tags
UnorderedList
Corresponds to <ul>
tags
Corresponts to <nav>
tags
Section
Corresponts to <section>
tags
Trait Implementations§
source§impl Clone for ContainerType
impl Clone for ContainerType
source§fn clone(&self) -> ContainerType
fn clone(&self) -> ContainerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContainerType
impl Debug for ContainerType
source§impl Default for ContainerType
impl Default for ContainerType
source§fn default() -> ContainerType
fn default() -> ContainerType
Returns the “default value” for a type. Read more
source§impl Display for ContainerType
impl Display for ContainerType
source§impl Ord for ContainerType
impl Ord for ContainerType
source§fn cmp(&self, other: &ContainerType) -> Ordering
fn cmp(&self, other: &ContainerType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ContainerType> for ContainerType
impl PartialEq<ContainerType> for ContainerType
source§fn eq(&self, other: &ContainerType) -> bool
fn eq(&self, other: &ContainerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ContainerType> for ContainerType
impl PartialOrd<ContainerType> for ContainerType
source§fn partial_cmp(&self, other: &ContainerType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainerType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more