Struct html_sys::HTMLOptionElement
source · pub struct HTMLOptionElement { /* private fields */ }
Implementations§
source§impl HTMLOptionElement
impl HTMLOptionElement
pub fn disabled(&self) -> bool
pub fn set_disabled(&mut self, value: bool)
pub fn label(&self) -> String
pub fn set_label(&mut self, value: String)
pub fn defaultSelected(&self) -> bool
pub fn set_defaultSelected(&mut self, value: bool)
pub fn selected(&self) -> bool
pub fn set_selected(&mut self, value: bool)
pub fn value(&self) -> String
pub fn set_value(&mut self, value: String)
pub fn text(&self) -> String
pub fn set_text(&mut self, value: String)
Methods from Deref<Target = HTMLElement>§
Methods from Deref<Target = Element>§
Methods from Deref<Target = Node>§
Trait Implementations§
source§impl Clone for HTMLOptionElement
impl Clone for HTMLOptionElement
source§fn clone(&self) -> HTMLOptionElement
fn clone(&self) -> HTMLOptionElement
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 HTMLOptionElement
impl Debug for HTMLOptionElement
source§impl Default for HTMLOptionElement
impl Default for HTMLOptionElement
source§fn default() -> HTMLOptionElement
fn default() -> HTMLOptionElement
Returns the “default value” for a type. Read more
source§impl Deref for HTMLOptionElement
impl Deref for HTMLOptionElement
source§impl PartialEq<HTMLOptionElement> for HTMLOptionElement
impl PartialEq<HTMLOptionElement> for HTMLOptionElement
source§fn eq(&self, other: &HTMLOptionElement) -> bool
fn eq(&self, other: &HTMLOptionElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.