Struct HtmlButtonElement

Source
pub struct HtmlButtonElement { /* private fields */ }

Implementations§

Source§

impl HtmlButtonElement

Source

pub fn name(&self) -> String

Source

pub fn set_name(&self, name: &str)

Source

pub fn value(&self) -> String

Source

pub fn set_value(&self, value: &str)

Source

pub fn autofocus(&self) -> bool

Source

pub fn set_autofocus(&self, autofocus: bool)

Source

pub fn disabled(&self) -> bool

Source

pub fn set_disabled(&self, disabled: bool)

Source

pub fn form_action(&self) -> String

Source

pub fn set_form_action(&self, form_action: &str)

Source

pub fn form_no_validate(&self) -> bool

Source

pub fn set_form_no_validate(&self, form_no_validate: bool)

Source

pub fn form_target(&self) -> String

Source

pub fn set_form_target(&self, form_target: &str)

Source

pub fn check_validity(&self) -> bool

Source

pub fn report_validity(&self) -> bool

Source

pub fn set_custom_validity(&self, error: &str)

Source

pub fn validity(&self) -> ValidityState

Source

pub fn button_type(&self) -> ButtonType

Source

pub fn set_button_type(&self, button_type: ButtonType)

Source

pub fn form(&self) -> Option<HtmlFormElement>

Source

pub fn form_encoding(&self) -> String

Source

pub fn set_form_encoding(&self, encoding: &str)

Source

pub fn form_method(&self) -> FormMethod

Source

pub fn set_form_method(&self, method: FormMethod)

Source

pub fn validation_message(&self) -> String

Source

pub fn labels(&self) -> Labels

Trait Implementations§

Source§

impl AsRef<Element> for HtmlButtonElement

Source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EventTarget> for HtmlButtonElement

Source§

fn as_ref(&self) -> &EventTarget

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HtmlButtonElement> for HtmlButtonElement

Source§

fn as_ref(&self) -> &HtmlButtonElement

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HtmlElement> for HtmlButtonElement

Source§

fn as_ref(&self) -> &HtmlElement

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Node> for HtmlButtonElement

Source§

fn as_ref(&self) -> &Node

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for HtmlButtonElement

Source§

fn clone(&self) -> HtmlButtonElement

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Element for HtmlButtonElement

Source§

fn matches(&self, selector: &str) -> Result<bool, SyntaxError>

Source§

fn query_selector_first( &self, selector: &str, ) -> Result<Option<GenericElement>, SyntaxError>

Source§

fn query_selector_all( &self, selector: &str, ) -> Result<QuerySelectorAll, SyntaxError>

Source§

fn closest(&self, selector: &str) -> Result<Option<GenericElement>, SyntaxError>

Source§

fn set_pointer_capture( &self, pointer_id: PointerId, ) -> Result<(), InvalidPointerId>

Source§

fn has_pointer_capture(&self, pointer_id: PointerId) -> bool

Source§

fn release_pointer_capture( &self, pointer_id: PointerId, ) -> Result<(), InvalidPointerId>

Source§

fn bounding_client_rect(&self) -> ClientRect

Source§

fn client_rects(&self) -> ClientRects

Source§

fn attributes(&self) -> Attributes<'_>

Source§

fn classes(&self) -> Classes<'_>

Source§

fn set_classes(&self, classes: &str)

Source§

fn disconnect(&self)

Source§

fn previous_sibling_element(&self) -> Option<GenericElement>

Source§

fn next_sibling_element(&self) -> Option<GenericElement>

Source§

fn child_elements(&self) -> ChildElements<'_>

Source§

fn tag_name(&self) -> String

Source§

fn namespace_uri(&self) -> Option<String>

Source§

fn local_name(&self) -> String

Source§

fn prefix(&self) -> Option<String>

Source§

fn client_width(&self) -> i32

Source§

fn client_height(&self) -> i32

Source§

fn client_top(&self) -> i32

Source§

fn client_left(&self) -> i32

Source§

fn id(&self) -> String

Source§

fn set_id(&self, id: &str)

Source§

fn slot(&self) -> String

Source§

fn set_slot(&self, slot: &str)

Source§

fn inner_html(&self) -> String

Source§

fn set_inner_html(&self, html: &str)

Source§

fn outer_html(&self) -> String

Source§

fn set_outer_html(&self, html: &str)

Source§

fn replace_with<T>(&self, replacement: &T)
where T: ElementReplacement, Self: Sized,

Source§

fn scroll_left(&self) -> i32

Source§

fn scroll_top(&self) -> i32

Source§

fn scroll_width(&self) -> i32

Source§

fn scroll_height(&self) -> i32

Source§

fn scroll_to(&self, options: ScrollToOptions)

Source§

fn scroll_by(&self, options: ScrollByOptions)

Source§

fn scroll_into_view(&self, options: ScrollIntoViewOptions)

Source§

impl From<HtmlButtonElement> for GenericElement

Source§

fn from(element: HtmlButtonElement) -> Self

Converts to this type from the input type.
Source§

impl From<HtmlButtonElement> for GenericHtmlElement

Source§

fn from(element: HtmlButtonElement) -> Self

Converts to this type from the input type.
Source§

impl From<HtmlButtonElement> for GenericNode

Source§

fn from(element: HtmlButtonElement) -> Self

Converts to this type from the input type.
Source§

impl From<HtmlButtonElement> for HtmlButtonElement

Source§

fn from(inner: HtmlButtonElement) -> Self

Converts to this type from the input type.
Source§

impl GlobalEventHandlers for HtmlButtonElement

Source§

fn on_blur(&self) -> OnBlur

Source§

fn on_focus(&self) -> OnFocus

Source§

fn on_change(&self) -> OnChange

Source§

fn on_click(&self) -> OnClick

Source§

fn on_context_menu(&self) -> OnContextMenu

Source§

fn on_double_click(&self) -> OnDoubleClick

Source§

fn on_drag(&self) -> OnDrag

Source§

fn on_drag_end(&self) -> OnDragEnd

Source§

fn on_drag_enter(&self) -> OnDragEnter

Source§

fn on_drag_leave(&self) -> OnDragLeave

Source§

fn on_drag_over(&self) -> OnDragOver

Source§

fn on_drag_start(&self) -> OnDragStart

Source§

fn on_drop(&self) -> OnDrop

Source§

fn on_input(&self) -> OnInput

Source§

fn on_invalid(&self) -> OnInvalid

Source§

fn on_key_down(&self) -> OnKeyDown

Source§

fn on_key_up(&self) -> OnKeyUp

Source§

fn on_load(&self) -> OnLoad

Source§

fn on_load_start(&self) -> OnLoadStart

Source§

fn on_load_end(&self) -> OnLoadEnd

Source§

fn on_progress(&self) -> OnProgress

Source§

fn on_mouse_down(&self) -> OnMouseDown

Source§

fn on_mouse_enter(&self) -> OnMouseEnter

Source§

fn on_mouse_leave(&self) -> OnMouseLeave

Source§

fn on_mouse_move(&self) -> OnMouseMove

Source§

fn on_mouse_out(&self) -> OnMouseOut

Source§

fn on_mouse_over(&self) -> OnMouseOver

Source§

fn on_mouse_up(&self) -> OnMouseUp

Source§

fn on_wheel(&self) -> OnWheel

Source§

fn on_reset(&self) -> OnReset

Source§

fn on_resize(&self) -> OnResize

Source§

fn on_scroll(&self) -> OnScroll

Source§

fn on_select(&self) -> OnSelect

Source§

fn on_submit(&self) -> OnSubmit

Source§

fn on_toggle(&self) -> OnToggle

Source§

fn on_pointer_cancel(&self) -> OnPointerCancel

Source§

fn on_pointer_down(&self) -> OnPointerDown

Source§

fn on_pointer_move(&self) -> OnPointerMove

Source§

fn on_pointer_up(&self) -> OnPointerUp

Source§

fn on_pointer_out(&self) -> OnPointerOut

Source§

fn on_pointer_over(&self) -> OnPointerOver

Source§

fn on_pointer_enter(&self) -> OnPointerEnter

Source§

fn on_pointer_leave(&self) -> OnPointerLeave

Source§

fn on_got_pointer_capture(&self) -> OnGotPointerCapture

Source§

fn on_lost_pointer_capture(&self) -> OnLostPointerCapture

Source§

fn on_animation_cancel(&self) -> OnAnimationCancel

Source§

fn on_animation_end(&self) -> OnAnimationEnd

Source§

fn on_animation_iteration(&self) -> OnAnimationIteration

Source§

fn on_animation_start(&self) -> OnAnimationStart

Source§

fn on_transition_cancel(&self) -> OnTransitionCancel

Source§

fn on_transition_end(&self) -> OnTransitionEnd

Source§

fn on_transition_run(&self) -> OnTransitionRun

Source§

fn on_transition_start(&self) -> OnTransitionStart

Source§

fn on_error(&self) -> OnError

Source§

fn on_duration_changed(&self) -> OnDurationChanged

Source§

fn on_emptied(&self) -> OnEmptied

Source§

fn on_ended(&self) -> OnEnded

Source§

fn on_loaded_data(&self) -> OnLoadedData

Source§

fn on_loaded_metadata(&self) -> OnLoadedMetadata

Source§

fn on_pause(&self) -> OnPause

Source§

fn on_play(&self) -> OnPlay

Source§

fn on_playing(&self) -> OnPlaying

Source§

fn on_rate_change(&self) -> OnRateChange

Source§

fn on_seeked(&self) -> OnSeeked

Source§

fn on_seeking(&self) -> OnSeeking

Source§

fn on_stalled(&self) -> OnStalled

Source§

fn on_suspend(&self) -> OnSuspend

Source§

fn on_time_update(&self) -> OnTimeUpdate

Source§

fn on_volume_change(&self) -> OnVolumeChange

Source§

fn on_waiting(&self) -> OnWaiting

Source§

impl HtmlElement for HtmlButtonElement

Source§

fn blur(&self)

Source§

fn click(&self)

Source§

fn focus(&self)

Source§

fn title(&self) -> String

Source§

fn set_title(&self, title: &str)

Source§

fn lang(&self) -> String

Source§

fn set_lang(&self, lang: &str)

Source§

fn dir(&self) -> TextDirectionality

Source§

fn set_dir(&self, dir: TextDirectionality)

Source§

fn inner_text(&self) -> String

Source§

fn set_inner_text(&self, inner_text: &str)

Source§

fn hidden(&self) -> bool

Source§

fn set_hidden(&self, hidden: bool)

Source§

fn tab_index(&self) -> i32

Source§

fn set_tab_index(&self, tab_index: i32)

Source§

fn draggable(&self) -> bool

Source§

fn set_draggable(&self, draggable: bool)

Source§

fn content_editable(&self) -> ContentEditable

Source§

fn is_content_editable(&self) -> bool

Source§

fn set_content_editable(&self, content_editable: ContentEditable)

Source§

fn spellcheck(&self) -> bool

Source§

fn set_spellcheck(&self, spellcheck: bool)

Source§

fn style(&self) -> CssStyleDeclaration

Source§

fn offset_parent(&self) -> Option<GenericHtmlElement>

Source§

fn offset_top(&self) -> i32

Source§

fn offset_left(&self) -> i32

Source§

fn offset_width(&self) -> i32

Source§

fn offset_height(&self) -> i32

Source§

impl Node for HtmlButtonElement

Source§

impl TryFrom<GenericElement> for HtmlButtonElement

Source§

type Error = InvalidCast<GenericElement>

The type returned in the event of a conversion error.
Source§

fn try_from(value: GenericElement) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<GenericHtmlElement> for HtmlButtonElement

Source§

type Error = InvalidCast<GenericHtmlElement>

The type returned in the event of a conversion error.
Source§

fn try_from(value: GenericHtmlElement) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<GenericNode> for HtmlButtonElement

Source§

type Error = InvalidCast<GenericNode>

The type returned in the event of a conversion error.
Source§

fn try_from(value: GenericNode) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Write for HtmlButtonElement

Source§

fn write(&self, writer: &mut Writer)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DocumentChild for T
where T: Element,

Source§

fn prepend_to(&self, document_children: &DocumentChildElements<'_>)

Source§

fn append_to(&self, document_children: &DocumentChildElements<'_>)

Source§

impl<T> DocumentFragmentChild for T
where T: Element,

Source§

fn prepend_to( &self, document_fragment_children: &DocumentFragmentChildElements<'_>, )

Source§

fn append_to( &self, document_fragment_children: &DocumentFragmentChildElements<'_>, )

Source§

impl<T> ElementChild for T
where T: Element,

Source§

fn prepend_to(&self, parent_children: &ChildElements<'_>)

Source§

fn append_to(&self, parent_children: &ChildElements<'_>)

Source§

impl<T> ElementReplacement for T
where T: Element,

Source§

fn replace<E>(&self, element: &E)
where E: Element,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.