Struct Button

Source
#[non_exhaustive]
pub struct Button { /* private fields */ }
Expand description

The HTML <button> element

MDN Documentation

Implementations§

Source§

impl Button

Source

pub fn builder() -> ButtonBuilder

Create a new builder

Source§

impl Button

Source

pub fn data_map(&self) -> &DataMap

Access the element’s data-* properties

Source

pub fn data_map_mut(&mut self) -> &mut DataMap

Mutably access the element’s data-* properties

Source§

impl Button

Source

pub fn disabled(&self) -> bool

Get the value of the disabled attribute

Source

pub fn set_disabled(&mut self, value: bool)

Set the value of the disabled attribute

Source

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

Get the value of the form attribute

Source

pub fn set_form(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the form attribute

Source

pub fn form_action(&self) -> Option<&str>

Get the value of the formaction attribute

Source

pub fn set_form_action(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the formaction attribute

Source

pub fn form_enctype(&self) -> Option<&str>

Get the value of the formenctype attribute

Source

pub fn set_form_enctype(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the formenctype attribute

Source

pub fn form_method(&self) -> Option<&str>

Get the value of the formmethod attribute

Source

pub fn set_form_method(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the formmethod attribute

Source

pub fn form_no_validate(&self) -> bool

Get the value of the formnovalidate attribute

Source

pub fn set_form_no_validate(&mut self, value: bool)

Set the value of the formnovalidate attribute

Source

pub fn form_target(&self) -> Option<&str>

Get the value of the formtarget attribute

Source

pub fn set_form_target(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the formtarget attribute

Source

pub fn name(&self) -> Option<&str>

Get the value of the name attribute

Source

pub fn set_name(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the name attribute

Source

pub fn popovertarget(&self) -> Option<&str>

Get the value of the popovertarget attribute

Source

pub fn set_popovertarget(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the popovertarget attribute

Source

pub fn popovertargetaction(&self) -> Option<&str>

Get the value of the popovertargetaction attribute

Source

pub fn set_popovertargetaction( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the popovertargetaction attribute

Source

pub fn type_(&self) -> Option<&str>

Get the value of the type attribute

Source

pub fn set_type_(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the type attribute

Source

pub fn value(&self) -> Option<&str>

Get the value of the value attribute

Source

pub fn set_value(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the value attribute

Source

pub fn role(&self) -> Option<&str>

Get the value of the role attribute

Source

pub fn set_role(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the role attribute

Source

pub fn aria_active_descendant_element(&self) -> Option<&str>

Get the value of the aria-activedescendant attribute

Source

pub fn set_aria_active_descendant_element( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-activedescendant attribute

Source

pub fn aria_atomic(&self) -> bool

Get the value of the aria-atomic attribute

Source

pub fn set_aria_atomic(&mut self, value: bool)

Set the value of the aria-atomic attribute

Source

pub fn aria_auto_complete(&self) -> Option<&str>

Get the value of the aria-autocomplete attribute

Source

pub fn set_aria_auto_complete( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-autocomplete attribute

Source

pub fn aria_braille_label(&self) -> Option<&str>

Get the value of the aria-braillelabel attribute

Source

pub fn set_aria_braille_label( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-braillelabel attribute

Source

pub fn aria_braille_role_description(&self) -> Option<&str>

Get the value of the aria-brailleroledescription attribute

Source

pub fn set_aria_braille_role_description( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-brailleroledescription attribute

Source

pub fn aria_busy(&self) -> bool

Get the value of the aria-busy attribute

Source

pub fn set_aria_busy(&mut self, value: bool)

Set the value of the aria-busy attribute

Source

pub fn aria_checked(&self) -> Option<&str>

Get the value of the aria-checked attribute

Source

pub fn set_aria_checked(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-checked attribute

Source

pub fn aria_col_index(&self) -> Option<i64>

Get the value of the aria-colindex attribute

Source

pub fn set_aria_col_index(&mut self, value: Option<i64>)

Set the value of the aria-colindex attribute

Source

pub fn aria_col_index_text(&self) -> Option<&str>

Get the value of the aria-colindextext attribute

Source

pub fn set_aria_col_index_text( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-colindextext attribute

Source

pub fn aria_col_span(&self) -> Option<i64>

Get the value of the aria-colspan attribute

Source

pub fn set_aria_col_span(&mut self, value: Option<i64>)

Set the value of the aria-colspan attribute

Source

pub fn aria_controls_elements(&self) -> Option<&str>

Get the value of the aria-controls attribute

Source

pub fn set_aria_controls_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-controls attribute

Source

pub fn aria_current(&self) -> Option<&str>

Get the value of the aria-current attribute

Source

pub fn set_aria_current(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-current attribute

Source

pub fn aria_described_by_elements(&self) -> Option<&str>

Get the value of the aria-describedby attribute

Source

pub fn set_aria_described_by_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-describedby attribute

Source

pub fn aria_description(&self) -> Option<&str>

Get the value of the aria-description attribute

Source

pub fn set_aria_description( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-description attribute

Source

pub fn aria_details_elements(&self) -> Option<&str>

Get the value of the aria-details attribute

Source

pub fn set_aria_details_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-details attribute

Source

pub fn aria_disabled(&self) -> bool

Get the value of the aria-disabled attribute

Source

pub fn set_aria_disabled(&mut self, value: bool)

Set the value of the aria-disabled attribute

Source

pub fn aria_drop_effect(&self) -> Option<&str>

Get the value of the aria-dropeffect attribute

Source

pub fn set_aria_drop_effect( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-dropeffect attribute

Source

pub fn aria_error_message_elements(&self) -> Option<&str>

Get the value of the aria-errormessage attribute

Source

pub fn set_aria_error_message_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-errormessage attribute

Source

pub fn aria_expanded(&self) -> bool

Get the value of the aria-expanded attribute

Source

pub fn set_aria_expanded(&mut self, value: bool)

Set the value of the aria-expanded attribute

Source

pub fn aria_flow_to_elements(&self) -> Option<&str>

Get the value of the aria-flowto attribute

Source

pub fn set_aria_flow_to_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-flowto attribute

Source

pub fn aria_grabbed(&self) -> bool

Get the value of the aria-grabbed attribute

Source

pub fn set_aria_grabbed(&mut self, value: bool)

Set the value of the aria-grabbed attribute

Source

pub fn aria_has_popup(&self) -> Option<&str>

Get the value of the aria-haspopup attribute

Source

pub fn set_aria_has_popup( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-haspopup attribute

Source

pub fn aria_hidden(&self) -> bool

Get the value of the aria-hidden attribute

Source

pub fn set_aria_hidden(&mut self, value: bool)

Set the value of the aria-hidden attribute

Source

pub fn aria_invalid(&self) -> Option<&str>

Get the value of the aria-invalid attribute

Source

pub fn set_aria_invalid(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-invalid attribute

Source

pub fn aria_key_shortcuts(&self) -> Option<&str>

Get the value of the aria-keyshortcuts attribute

Source

pub fn set_aria_key_shortcuts( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-keyshortcuts attribute

Source

pub fn aria_label(&self) -> Option<&str>

Get the value of the aria-label attribute

Source

pub fn set_aria_label(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-label attribute

Source

pub fn aria_labelled_by_elements(&self) -> Option<&str>

Get the value of the aria-labelledby attribute

Source

pub fn set_aria_labelled_by_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-labelledby attribute

Source

pub fn aria_level(&self) -> Option<i64>

Get the value of the aria-level attribute

Source

pub fn set_aria_level(&mut self, value: Option<i64>)

Set the value of the aria-level attribute

Source

pub fn aria_live(&self) -> Option<&str>

Get the value of the aria-live attribute

Source

pub fn set_aria_live(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-live attribute

Source

pub fn aria_orientation(&self) -> Option<&str>

Get the value of the aria-orientation attribute

Source

pub fn set_aria_orientation( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-orientation attribute

Source

pub fn aria_owns_elements(&self) -> Option<&str>

Get the value of the aria-owns attribute

Source

pub fn set_aria_owns_elements( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-owns attribute

Source

pub fn aria_pos_in_set(&self) -> Option<i64>

Get the value of the aria-posinset attribute

Source

pub fn set_aria_pos_in_set(&mut self, value: Option<i64>)

Set the value of the aria-posinset attribute

Source

pub fn aria_pressed(&self) -> Option<&str>

Get the value of the aria-pressed attribute

Source

pub fn set_aria_pressed(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-pressed attribute

Source

pub fn aria_read_only(&self) -> bool

Get the value of the aria-readonly attribute

Source

pub fn set_aria_read_only(&mut self, value: bool)

Set the value of the aria-readonly attribute

Source

pub fn aria_relevant(&self) -> Option<&str>

Get the value of the aria-relevant attribute

Source

pub fn set_aria_relevant(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the aria-relevant attribute

Source

pub fn aria_required(&self) -> bool

Get the value of the aria-required attribute

Source

pub fn set_aria_required(&mut self, value: bool)

Set the value of the aria-required attribute

Source

pub fn aria_role_description(&self) -> Option<&str>

Get the value of the aria-roledescription attribute

Source

pub fn set_aria_role_description( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-roledescription attribute

Source

pub fn aria_row_index(&self) -> Option<i64>

Get the value of the aria-rowindex attribute

Source

pub fn set_aria_row_index(&mut self, value: Option<i64>)

Set the value of the aria-rowindex attribute

Source

pub fn aria_row_index_text(&self) -> Option<&str>

Get the value of the aria-rowindextext attribute

Source

pub fn set_aria_row_index_text( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-rowindextext attribute

Source

pub fn aria_row_span(&self) -> Option<i64>

Get the value of the aria-rowspan attribute

Source

pub fn set_aria_row_span(&mut self, value: Option<i64>)

Set the value of the aria-rowspan attribute

Source

pub fn aria_selected(&self) -> bool

Get the value of the aria-selected attribute

Source

pub fn set_aria_selected(&mut self, value: bool)

Set the value of the aria-selected attribute

Source

pub fn aria_set_size(&self) -> Option<i64>

Get the value of the aria-setsize attribute

Source

pub fn set_aria_set_size(&mut self, value: Option<i64>)

Set the value of the aria-setsize attribute

Source

pub fn aria_value_max(&self) -> Option<f64>

Get the value of the aria-valuemax attribute

Source

pub fn set_aria_value_max(&mut self, value: Option<f64>)

Set the value of the aria-valuemax attribute

Source

pub fn aria_value_min(&self) -> Option<f64>

Get the value of the aria-valuemin attribute

Source

pub fn set_aria_value_min(&mut self, value: Option<f64>)

Set the value of the aria-valuemin attribute

Source

pub fn aria_value_text(&self) -> Option<&str>

Get the value of the aria-valuetext attribute

Source

pub fn set_aria_value_text( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the aria-valuetext attribute

Source

pub fn access_key(&self) -> Option<&str>

Get the value of the accesskey attribute

Source

pub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the accesskey attribute

Source

pub fn auto_capitalize(&self) -> Option<&str>

Get the value of the autocapitalize attribute

Source

pub fn set_auto_capitalize( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the autocapitalize attribute

Source

pub fn autofocus(&self) -> bool

Get the value of the autofocus attribute

Source

pub fn set_autofocus(&mut self, value: bool)

Set the value of the autofocus attribute

Source

pub fn class(&self) -> Option<&str>

Get the value of the class attribute

Source

pub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the class attribute

Source

pub fn content_editable(&self) -> Option<&str>

Get the value of the contenteditable attribute

Source

pub fn set_content_editable( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the contenteditable attribute

Source

pub fn direction(&self) -> Option<&str>

Get the value of the dir attribute

Source

pub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the dir attribute

Source

pub fn draggable(&self) -> bool

Get the value of the draggable attribute

Source

pub fn set_draggable(&mut self, value: bool)

Set the value of the draggable attribute

Source

pub fn enter_key_hint(&self) -> Option<&str>

Get the value of the enterkeyhint attribute

Source

pub fn set_enter_key_hint( &mut self, value: Option<impl Into<Cow<'static, str>>>, )

Set the value of the enterkeyhint attribute

Source

pub fn export_parts(&self) -> Option<&str>

Get the value of the exportparts attribute

Source

pub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the exportparts attribute

Source

pub fn hidden(&self) -> Option<&str>

Get the value of the hidden attribute

Source

pub fn set_hidden(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the hidden attribute

Source

pub fn id(&self) -> Option<&str>

Get the value of the id attribute

Source

pub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the id attribute

Source

pub fn inert(&self) -> bool

Get the value of the inert attribute

Source

pub fn set_inert(&mut self, value: bool)

Set the value of the inert attribute

Source

pub fn input_mode(&self) -> Option<&str>

Get the value of the inputmode attribute

Source

pub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the inputmode attribute

Source

pub fn is_(&self) -> Option<&str>

Get the value of the is attribute

Source

pub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the is attribute

Source

pub fn item_id(&self) -> Option<&str>

Get the value of the itemid attribute

Source

pub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemid attribute

Source

pub fn item_prop(&self) -> Option<&str>

Get the value of the itemprop attribute

Source

pub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemprop attribute

Source

pub fn item_ref(&self) -> Option<&str>

Get the value of the itemref attribute

Source

pub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemref attribute

Source

pub fn item_scope(&self) -> Option<&str>

Get the value of the itemscope attribute

Source

pub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemscope attribute

Source

pub fn item_type(&self) -> Option<&str>

Get the value of the itemtype attribute

Source

pub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemtype attribute

Source

pub fn lang(&self) -> Option<&str>

Get the value of the lang attribute

Source

pub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the lang attribute

Source

pub fn nonce(&self) -> Option<&str>

Get the value of the nonce attribute

Source

pub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the nonce attribute

Source

pub fn part(&self) -> Option<&str>

Get the value of the part attribute

Source

pub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the part attribute

Source

pub fn slot(&self) -> Option<&str>

Get the value of the slot attribute

Source

pub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the slot attribute

Source

pub fn spellcheck(&self) -> Option<&str>

Get the value of the spellcheck attribute

Source

pub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the spellcheck attribute

Source

pub fn style(&self) -> Option<&str>

Get the value of the style attribute

Source

pub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the style attribute

Source

pub fn tab_index(&self) -> Option<i64>

Get the value of the tabindex attribute

Source

pub fn set_tab_index(&mut self, value: Option<i64>)

Set the value of the tabindex attribute

Source

pub fn title(&self) -> Option<&str>

Get the value of the title attribute

Source

pub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the title attribute

Source

pub fn translate(&self) -> bool

Get the value of the translate attribute

Source

pub fn set_translate(&mut self, value: bool)

Set the value of the translate attribute

Source§

impl Button

Source

pub fn children(&self) -> &[ButtonChild]

Access the element’s children

Source

pub fn children_mut(&mut self) -> &mut Vec<ButtonChild>

Mutably access the element’s children

Trait Implementations§

Source§

impl Clone for Button

Source§

fn clone(&self) -> Button

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 Debug for Button

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Button

Source§

fn default() -> Button

Returns the “default value” for a type. Read more
Source§

impl Display for Button

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Button> for AbbreviationChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for AddressChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for AnchorChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ArticleChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for AsideChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for AudioChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for BidirectionalIsolateChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for BidirectionalTextOverrideChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for BlockQuoteChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for BodyChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for BoldChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Button

Source§

fn from(sys: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ButtonChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for CanvasChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for CaptionChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for CiteChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for CodeChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DataChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DataListChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DefinitionChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DeletedTextChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DescriptionDetailsChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DescriptionTermChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DetailsChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DialogChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for DivisionChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for EmphasisChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for FieldsetChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for FigureCaptionChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for FigureChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for FooterChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for FormChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for HeaderChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading1Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading2Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading3Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading4Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading5Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for Heading6Child

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ImageMapChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for InsertedTextChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ItalicChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for KeyboardInputChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for LabelChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for LegendChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ListItemChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for MainChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for MarkTextChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for MeterChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for NavigationChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for NoScriptChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ObjectChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for OutputChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ParagraphChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for PreformattedTextChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for ProgressChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for QuotationChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for RubyTextChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SampleOutputChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SearchChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SectionChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SideCommentChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SlotChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SpanChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for StrikeThroughChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for StrongChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SubScriptChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SummaryChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for SuperScriptChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for TableCellChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for TableHeaderChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for TimeChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for UnderlineChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for VariableChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl From<Button> for VideoChild

Source§

fn from(value: Button) -> Self

Converts to this type from the input type.
Source§

impl Into<Button> for Button

Source§

fn into(self) -> Button

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for Button

Source§

fn eq(&self, other: &Button) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Render for Button

Source§

fn render(&self, f: &mut Formatter<'_>, depth: usize) -> Result

Render an element with a given depth argument.
Source§

impl FlowContent for Button

Source§

impl HtmlElement for Button

Source§

impl InteractiveContent for Button

Source§

impl PalpableContent for Button

Source§

impl PhrasingContent for Button

Source§

impl StructuralPartialEq for Button

Auto Trait Implementations§

§

impl Freeze for Button

§

impl RefUnwindSafe for Button

§

impl Send for Button

§

impl Sync for Button

§

impl Unpin for Button

§

impl UnwindSafe for Button

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.