pub(crate) trait TextControlElement:
DerivedFrom<EventTarget>
+ DerivedFrom<Node>
+ DerivedFrom<Element> {
// Required methods
fn selection_api_applies(&self) -> bool;
fn has_selectable_text(&self) -> bool;
fn has_uncollapsed_selection(&self) -> bool;
fn set_dirty_value_flag(&self, value: bool);
fn select_all(&self);
fn maybe_update_shared_selection(&self);
fn placeholder_text<'a>(&'a self) -> Ref<'a, DOMString>;
fn value_text(&self) -> DOMString;
// Provided method
fn is_password_field(&self) -> bool { ... }
}Required Methods§
fn selection_api_applies(&self) -> bool
fn has_selectable_text(&self) -> bool
fn has_uncollapsed_selection(&self) -> bool
fn set_dirty_value_flag(&self, value: bool)
fn select_all(&self)
fn placeholder_text<'a>(&'a self) -> Ref<'a, DOMString>
fn value_text(&self) -> DOMString
Provided Methods§
fn is_password_field(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.