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 Containers
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 From<ContainerType> for HtmlTag
impl From<ContainerType> for HtmlTag
source§fn from(value: ContainerType) -> Self
fn from(value: ContainerType) -> Self
Converts to this type from the input type.
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 for ContainerType
impl PartialEq 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 for ContainerType
impl PartialOrd 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 moreimpl Copy for ContainerType
impl Eq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl Freeze for ContainerType
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)