Struct html_sys::forms::OptionGroup
source · #[non_exhaustive]pub struct OptionGroup {
pub disabled: bool,
pub label: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <optgroup>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.disabled: bool
Whether the form control is disabled
label: Option<Cow<'static, str>>
User-visible label
Trait Implementations§
source§impl Clone for OptionGroup
impl Clone for OptionGroup
source§fn clone(&self) -> OptionGroup
fn clone(&self) -> OptionGroup
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 OptionGroup
impl Debug for OptionGroup
source§impl Default for OptionGroup
impl Default for OptionGroup
source§fn default() -> OptionGroup
fn default() -> OptionGroup
Returns the “default value” for a type. Read more
source§impl Deref for OptionGroup
impl Deref for OptionGroup
source§impl DerefMut for OptionGroup
impl DerefMut for OptionGroup
source§impl Display for OptionGroup
impl Display for OptionGroup
source§impl PartialEq<OptionGroup> for OptionGroup
impl PartialEq<OptionGroup> for OptionGroup
source§fn eq(&self, other: &OptionGroup) -> bool
fn eq(&self, other: &OptionGroup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OptionGroup> for OptionGroup
impl PartialOrd<OptionGroup> for OptionGroup
source§fn partial_cmp(&self, other: &OptionGroup) -> Option<Ordering>
fn partial_cmp(&self, other: &OptionGroup) -> 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