Struct html_sys::forms::OptionGroup
source · #[non_exhaustive]pub struct OptionGroup {
pub data_map: DataMap,
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.data_map: DataMap
§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 RenderElement for OptionGroup
impl RenderElement for OptionGroup
impl StructuralPartialEq for OptionGroup
Auto Trait Implementations§
impl RefUnwindSafe for OptionGroup
impl Send for OptionGroup
impl Sync for OptionGroup
impl Unpin for OptionGroup
impl UnwindSafe for OptionGroup
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