pub struct HtmlButtonElement { /* private fields */ }
Implementations§
Source§impl HtmlButtonElement
impl HtmlButtonElement
pub fn name(&self) -> String
pub fn set_name(&self, name: &str)
pub fn value(&self) -> String
pub fn set_value(&self, value: &str)
pub fn autofocus(&self) -> bool
pub fn set_autofocus(&self, autofocus: bool)
pub fn disabled(&self) -> bool
pub fn set_disabled(&self, disabled: bool)
pub fn form_action(&self) -> String
pub fn set_form_action(&self, form_action: &str)
pub fn form_no_validate(&self) -> bool
pub fn set_form_no_validate(&self, form_no_validate: bool)
pub fn form_target(&self) -> String
pub fn set_form_target(&self, form_target: &str)
pub fn check_validity(&self) -> bool
pub fn report_validity(&self) -> bool
pub fn set_custom_validity(&self, error: &str)
pub fn validity(&self) -> ValidityState
pub fn form(&self) -> Option<HtmlFormElement>
pub fn form_encoding(&self) -> String
pub fn set_form_encoding(&self, encoding: &str)
pub fn form_method(&self) -> FormMethod
pub fn set_form_method(&self, method: FormMethod)
pub fn validation_message(&self) -> String
pub fn labels(&self) -> Labels
Trait Implementations§
Source§impl AsRef<Element> for HtmlButtonElement
impl AsRef<Element> for HtmlButtonElement
Source§impl AsRef<EventTarget> for HtmlButtonElement
impl AsRef<EventTarget> for HtmlButtonElement
Source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<HtmlButtonElement> for HtmlButtonElement
impl AsRef<HtmlButtonElement> for HtmlButtonElement
Source§fn as_ref(&self) -> &HtmlButtonElement
fn as_ref(&self) -> &HtmlButtonElement
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<HtmlElement> for HtmlButtonElement
impl AsRef<HtmlElement> for HtmlButtonElement
Source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<Node> for HtmlButtonElement
impl AsRef<Node> for HtmlButtonElement
Source§impl Clone for HtmlButtonElement
impl Clone for HtmlButtonElement
Source§fn clone(&self) -> HtmlButtonElement
fn clone(&self) -> HtmlButtonElement
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 Element for HtmlButtonElement
impl Element for HtmlButtonElement
fn matches(&self, selector: &str) -> Result<bool, SyntaxError>
fn query_selector_first( &self, selector: &str, ) -> Result<Option<GenericElement>, SyntaxError>
fn query_selector_all( &self, selector: &str, ) -> Result<QuerySelectorAll, SyntaxError>
fn closest(&self, selector: &str) -> Result<Option<GenericElement>, SyntaxError>
fn set_pointer_capture( &self, pointer_id: PointerId, ) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: PointerId) -> bool
fn release_pointer_capture( &self, pointer_id: PointerId, ) -> Result<(), InvalidPointerId>
fn bounding_client_rect(&self) -> ClientRect
fn client_rects(&self) -> ClientRects
fn attributes(&self) -> Attributes<'_>
fn classes(&self) -> Classes<'_>
fn set_classes(&self, classes: &str)
fn disconnect(&self)
fn previous_sibling_element(&self) -> Option<GenericElement>
fn next_sibling_element(&self) -> Option<GenericElement>
fn child_elements(&self) -> ChildElements<'_>
fn tag_name(&self) -> String
fn namespace_uri(&self) -> Option<String>
fn local_name(&self) -> String
fn prefix(&self) -> Option<String>
fn client_width(&self) -> i32
fn client_height(&self) -> i32
fn client_top(&self) -> i32
fn client_left(&self) -> i32
fn id(&self) -> String
fn set_id(&self, id: &str)
fn slot(&self) -> String
fn set_slot(&self, slot: &str)
fn inner_html(&self) -> String
fn set_inner_html(&self, html: &str)
fn outer_html(&self) -> String
fn set_outer_html(&self, html: &str)
fn replace_with<T>(&self, replacement: &T)where
T: ElementReplacement,
Self: Sized,
fn scroll_left(&self) -> i32
fn scroll_top(&self) -> i32
fn scroll_width(&self) -> i32
fn scroll_height(&self) -> i32
fn scroll_to(&self, options: ScrollToOptions)
fn scroll_by(&self, options: ScrollByOptions)
fn scroll_into_view(&self, options: ScrollIntoViewOptions)
Source§impl From<HtmlButtonElement> for GenericElement
impl From<HtmlButtonElement> for GenericElement
Source§fn from(element: HtmlButtonElement) -> Self
fn from(element: HtmlButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<HtmlButtonElement> for GenericHtmlElement
impl From<HtmlButtonElement> for GenericHtmlElement
Source§fn from(element: HtmlButtonElement) -> Self
fn from(element: HtmlButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<HtmlButtonElement> for GenericNode
impl From<HtmlButtonElement> for GenericNode
Source§fn from(element: HtmlButtonElement) -> Self
fn from(element: HtmlButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<HtmlButtonElement> for HtmlButtonElement
impl From<HtmlButtonElement> for HtmlButtonElement
Source§fn from(inner: HtmlButtonElement) -> Self
fn from(inner: HtmlButtonElement) -> Self
Converts to this type from the input type.
Source§impl GlobalEventHandlers for HtmlButtonElement
impl GlobalEventHandlers for HtmlButtonElement
fn on_blur(&self) -> OnBlur
fn on_focus(&self) -> OnFocus
fn on_change(&self) -> OnChange
fn on_click(&self) -> OnClick
fn on_double_click(&self) -> OnDoubleClick
fn on_drag(&self) -> OnDrag
fn on_drag_end(&self) -> OnDragEnd
fn on_drag_enter(&self) -> OnDragEnter
fn on_drag_leave(&self) -> OnDragLeave
fn on_drag_over(&self) -> OnDragOver
fn on_drag_start(&self) -> OnDragStart
fn on_drop(&self) -> OnDrop
fn on_input(&self) -> OnInput
fn on_invalid(&self) -> OnInvalid
fn on_key_down(&self) -> OnKeyDown
fn on_key_up(&self) -> OnKeyUp
fn on_load(&self) -> OnLoad
fn on_load_start(&self) -> OnLoadStart
fn on_load_end(&self) -> OnLoadEnd
fn on_progress(&self) -> OnProgress
fn on_mouse_down(&self) -> OnMouseDown
fn on_mouse_enter(&self) -> OnMouseEnter
fn on_mouse_leave(&self) -> OnMouseLeave
fn on_mouse_move(&self) -> OnMouseMove
fn on_mouse_out(&self) -> OnMouseOut
fn on_mouse_over(&self) -> OnMouseOver
fn on_mouse_up(&self) -> OnMouseUp
fn on_wheel(&self) -> OnWheel
fn on_reset(&self) -> OnReset
fn on_resize(&self) -> OnResize
fn on_scroll(&self) -> OnScroll
fn on_select(&self) -> OnSelect
fn on_submit(&self) -> OnSubmit
fn on_toggle(&self) -> OnToggle
fn on_pointer_cancel(&self) -> OnPointerCancel
fn on_pointer_down(&self) -> OnPointerDown
fn on_pointer_move(&self) -> OnPointerMove
fn on_pointer_up(&self) -> OnPointerUp
fn on_pointer_out(&self) -> OnPointerOut
fn on_pointer_over(&self) -> OnPointerOver
fn on_pointer_enter(&self) -> OnPointerEnter
fn on_pointer_leave(&self) -> OnPointerLeave
fn on_got_pointer_capture(&self) -> OnGotPointerCapture
fn on_lost_pointer_capture(&self) -> OnLostPointerCapture
fn on_animation_cancel(&self) -> OnAnimationCancel
fn on_animation_end(&self) -> OnAnimationEnd
fn on_animation_iteration(&self) -> OnAnimationIteration
fn on_animation_start(&self) -> OnAnimationStart
fn on_transition_cancel(&self) -> OnTransitionCancel
fn on_transition_end(&self) -> OnTransitionEnd
fn on_transition_run(&self) -> OnTransitionRun
fn on_transition_start(&self) -> OnTransitionStart
fn on_error(&self) -> OnError
fn on_duration_changed(&self) -> OnDurationChanged
fn on_emptied(&self) -> OnEmptied
fn on_ended(&self) -> OnEnded
fn on_loaded_data(&self) -> OnLoadedData
fn on_loaded_metadata(&self) -> OnLoadedMetadata
fn on_pause(&self) -> OnPause
fn on_play(&self) -> OnPlay
fn on_playing(&self) -> OnPlaying
fn on_rate_change(&self) -> OnRateChange
fn on_seeked(&self) -> OnSeeked
fn on_seeking(&self) -> OnSeeking
fn on_stalled(&self) -> OnStalled
fn on_suspend(&self) -> OnSuspend
fn on_time_update(&self) -> OnTimeUpdate
fn on_volume_change(&self) -> OnVolumeChange
fn on_waiting(&self) -> OnWaiting
Source§impl HtmlElement for HtmlButtonElement
impl HtmlElement for HtmlButtonElement
fn blur(&self)
fn click(&self)
fn focus(&self)
fn title(&self) -> String
fn set_title(&self, title: &str)
fn lang(&self) -> String
fn set_lang(&self, lang: &str)
fn dir(&self) -> TextDirectionality
fn set_dir(&self, dir: TextDirectionality)
fn inner_text(&self) -> String
fn set_inner_text(&self, inner_text: &str)
fn tab_index(&self) -> i32
fn set_tab_index(&self, tab_index: i32)
fn draggable(&self) -> bool
fn set_draggable(&self, draggable: bool)
fn content_editable(&self) -> ContentEditable
fn is_content_editable(&self) -> bool
fn set_content_editable(&self, content_editable: ContentEditable)
fn spellcheck(&self) -> bool
fn set_spellcheck(&self, spellcheck: bool)
fn style(&self) -> CssStyleDeclaration
fn offset_parent(&self) -> Option<GenericHtmlElement>
fn offset_top(&self) -> i32
fn offset_left(&self) -> i32
fn offset_width(&self) -> i32
fn offset_height(&self) -> i32
Source§impl Node for HtmlButtonElement
impl Node for HtmlButtonElement
fn base_uri(&self) -> Option<String>
fn is_connected(&self) -> bool
fn node_type(&self) -> NodeType
fn node_value(&self) -> Option<String>
fn set_node_value(&self, value: Option<&str>)
fn text_content(&self) -> Option<String>
fn set_text_content(&self, content: Option<&str>)
fn compare_document_position<T>(&self, other: &T) -> CompareDocumentPositionwhere
T: Node,
fn is_default_namespace(&self, namespace: &str) -> bool
fn lookup_namespace_uri(&self, prefix: Option<&str>) -> Option<String>
fn lookup_prefix(&self, namespace: &str) -> Option<String>
fn normalize(&self)
fn root_node(&self) -> GenericNode
fn root_node_composed(&self) -> GenericNode
fn parent_node(&self) -> Option<GenericNode>
fn parent_element(&self) -> Option<GenericElement>
fn previous_sibling_node(&self) -> Option<GenericNode>
fn next_sibling_node(&self) -> Option<GenericNode>
fn child_nodes(&self) -> ChildNodes<'_>
Source§impl TryFrom<GenericElement> for HtmlButtonElement
impl TryFrom<GenericElement> for HtmlButtonElement
Source§type Error = InvalidCast<GenericElement>
type Error = InvalidCast<GenericElement>
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericHtmlElement> for HtmlButtonElement
impl TryFrom<GenericHtmlElement> for HtmlButtonElement
Source§type Error = InvalidCast<GenericHtmlElement>
type Error = InvalidCast<GenericHtmlElement>
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericNode> for HtmlButtonElement
impl TryFrom<GenericNode> for HtmlButtonElement
Source§type Error = InvalidCast<GenericNode>
type Error = InvalidCast<GenericNode>
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for HtmlButtonElement
impl RefUnwindSafe for HtmlButtonElement
impl !Send for HtmlButtonElement
impl !Sync for HtmlButtonElement
impl Unpin for HtmlButtonElement
impl UnwindSafe for HtmlButtonElement
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