Struct silkenweb::elements::html::Input

source ·
pub struct Input<Dom: Dom = DefaultDom, Mutability = Mut>(/* private fields */);
Expand description

The HTML input element

The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.

Implementations§

source§

impl<Dom: Dom> Input<Dom>

source

pub fn new() -> Self

Construct with no attributes set.

source

pub fn freeze(self) -> Input<Dom, Const>

Freeze self, making it immutable.

source

pub fn accept<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The accept attribute

Valid for the file input type only, the accept property defines which file types are selectable in a file upload control. See the file input type.

source

pub fn alt<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The alt attribute

Valid for the image button only, the alt attribute provides alternative text for the image, displaying the value of the attribute if the image src is missing or otherwise fails to load. See the image input type.

source

pub fn autocomplete<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The autocomplete attribute

The autocomplete attribute takes as its value a space-separated string that describes what, if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete simply recalls previous values entered in the same input field, but more complex forms of autocomplete can exist. For instance, a browser could integrate with a device’s contacts list to autocomplete email addresses in an email input field. See Values in The HTML autocomplete attribute for permitted values.

The autocomplete attribute is valid on hidden, text, search, url, tel, email, date, month, week, time, datetime-local, number, range, color, and password. This attribute has no effect on input types that do not return numeric or text data, being valid for all input types except checkbox, radio, file, or any of the button types.

See The HTML autocomplete attribute for additional information, including information on password security and how autocomplete is slightly different for hidden than for other input types.

source

pub fn autofocus<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<bool>,

The autofocus attribute

Indicates if present that the input should automatically have focus when the page has finished loading (or when the <dialog> containing the element has been displayed).

Note: An element with the autofocus attribute may gain focus before the DOMContentLoaded event is fired.

No more than one element in the document may have the autofocus attribute. The autofocus attribute cannot be used on inputs of type hidden, since hidden inputs cannot be focused.

If put on more than one element, the first one with the attribute receives focus.

Warning: Automatically focusing a form control can confuse visually-impaired people using screen-reading technology and people with cognitive impairments. When autofocus is assigned, screen-readers “teleport” their user to the form control without warning them beforehand.

For better usability, avoid using autofocus. Automatically focusing on a form control can cause the page to scroll on load. The focus can also cause dynamic keyboards to display on some touch devices. While a screen reader will announce the label of the form control receiving focus, the screen reader will not announce anything before the label, and the sighted user on a small device will equally miss the context created by the preceding content.

source

pub fn capture<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The capture attribute

Introduced in the HTML Media Capture specification and valid for the file input type only, the capture attribute defines which media—microphone, video, or camera—should be used to capture a new file for upload with file upload control in supporting scenarios. See the file input type.

source

pub fn checked<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The checked attribute

Valid for both radio and checkbox types, checked is a Boolean attribute. If present on a radio type, it indicates that that radio button is the currently selected one in the group of same-named radio buttons. If present on a checkbox type, it indicates that the checkbox is checked by default (when the page loads). It does not indicate whether this checkbox is currently checked: if the checkbox’s state is changed, this content attribute does not reflect the change. (Only the HTMLInputElement’s checked IDL attribute is updated.)

Note: Unlike other input controls, a checkboxes and radio buttons value are only included in the submitted data if they are currently checked. If they are, the name and the value(s) of the checked controls are submitted.

For example, if a checkbox whose name is fruit has a value of cherry, and the checkbox is checked, the form data submitted will include fruit=cherry. If the checkbox isn’t active, it isn’t listed in the form data at all. The default value for checkboxes and radio buttons is on.

source

pub fn dirname<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The dirname attribute

Valid for text and search input types only, the dirname attribute enables the submission of the directionality of the element. When included, the form control will submit with two name/value pairs: the first being the name and value, the second being the value of the dirname as the name with the value of ltr or rtl being set by the browser.

source

pub fn disabled<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The disabled attribute

If present indicates that the user should not be able to interact with the input. Disabled inputs are typically rendered with a dimmer color or using some other form of indication that the field is not available for use.

Specifically, disabled inputs do not receive the click event, and disabled inputs are not submitted with the form.

source

pub fn form<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The form attribute

A string specifying the <form> element with which the input is associated (that is, its form owner). This string’s value, if present, must match the id of a <form> element in the same document. If this attribute isn’t specified, the <input> element is associated with the nearest containing form, if any.

The form attribute lets you place an input anywhere in the document but have it included with a form elsewhere in the document.

Note: An input can only be associated with one form.

source

pub fn formaction<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The formaction attribute

Valid for the image and submit input types only. See the submit input type for more information.

source

pub fn formenctype<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The formenctype attribute

Valid for the image and submit input types only. See the submit input type for more information.

source

pub fn formmethod<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The formmethod attribute

Valid for the image and submit input types only. See the submit input type for more information.

source

pub fn formnovalidate<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The formnovalidate attribute

Valid for the image and submit input types only. See the submit input type for more information.

source

pub fn formtarget<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The formtarget attribute

Valid for the image and submit input types only. See the submit input type for more information.

source

pub fn height<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The height attribute

Valid for the image input button only, the height is the height of the image file to display to represent the graphical submit button. See the image input type.

source

pub fn inputmode<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The inputmode attribute

Global value valid for all elements, it provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Values include none, text, tel, url, email, numeric, decimal, and search.

source

pub fn list<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The list attribute

The values of the list attribute is the id of a <datalist> element located in the same document. The <datalist> provides a list of predefined values to suggest to the user for this input. Any values in the list that are not compatible with the type are not included in the suggested options. The values provided are suggestions, not requirements: users can select from this predefined list or provide a different value.

It is valid on text, search, url, tel, email, date, month, week, time, datetime-local, number, range, and color.

Per the specifications, the list attribute is not supported by the hidden, password, checkbox, radio, file, or any of the button types.

Depending on the browser, the user may see a custom color palette suggested, tic marks along a range, or even a input that opens like a select but allows for non-listed values. Check out the browser compatibility table for the other input types.

See the <datalist> element.

source

pub fn max<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The max attribute

Valid for date, month, week, time, datetime-local, number, and range, it defines the greatest value in the range of permitted values. If the value entered into the element exceeds this, the element fails constraint validation. If the value of the max attribute isn’t a number, then the element has no maximum value.

There is a special case: if the data type is periodic (such as for dates or times), the value of max may be lower than the value of min, which indicates that the range may wrap around; for example, this allows you to specify a time range from 10 PM to 4 AM.

source

pub fn maxlength<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The maxlength attribute

Valid for text, search, url, tel, email, and password, it defines the maximum number of characters (as UTF-16 code units) the user can enter into the field. This must be an integer value 0 or higher. If no maxlength is specified, or an invalid value is specified, the field has no maximum length. This value must also be greater than or equal to the value of minlength.

The input will fail constraint validation if the length of the text entered into the field is greater than maxlength UTF-16 code units long. By default, browsers prevent users from entering more characters than allowed by the maxlength attribute.

source

pub fn min<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The min attribute

Valid for date, month, week, time, datetime-local, number, and range, it defines the most negative value in the range of permitted values. If the value entered into the element is less than this this, the element fails constraint validation. If the value of the min attribute isn’t a number, then the element has no minimum value.

This value must be less than or equal to the value of the max attribute. If the min attribute is present but is not specified or is invalid, no min value is applied. If the min attribute is valid and a non-empty value is less than the minimum allowed by the min attribute, constraint validation will prevent form submission.

There is a special case: if the data type is periodic (such as for dates or times), the value of max may be lower than the value of min, which indicates that the range may wrap around; for example, this allows you to specify a time range from 10 PM to 4 AM.

source

pub fn minlength<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The minlength attribute

Valid for text, search, url, tel, email, and password, it defines the minimum number of characters (as UTF-16 code units) the user can enter into the entry field. This must be an non-negative integer value smaller than or equal to the value specified by maxlength. If no minlength is specified, or an invalid value is specified, the input has no minimum length.

The input will fail constraint validation if the length of the text entered into the field is fewer than minlength UTF-16 code units long, preventing form submission.

source

pub fn multiple<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The multiple attribute

If set, means the user can enter comma separated email addresses in the email widget or can choose more than one file with the file input. See the email and file input type.

source

pub fn name<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The name attribute

A string specifying a name for the input control. This name is submitted along with the control’s value when the form data is submitted.

§What’s in a name

Consider the name a required attribute (even though it’s not). If an input has no name specified, or name is empty, the input’s value is not submitted with the form! (Disabled controls, unchecked radio buttons, unchecked checkboxes, and reset buttons are also not sent.)

There are two special cases:

  • _charset_: If used as the name of an <input> element of type hidden, the input’s value is automatically set by the user agent to the character encoding being used to submit the form.
  • isindex: For historical reasons, the name isindex is not allowed.
§name and radio buttons

The name attribute creates a unique behavior for radio buttons.

Only one radio button in a same-named group of radio buttons can be checked at a time. Selecting any radio button in that group automatically deselects any currently-selected radio button in the same group. The value of that one checked radio button is sent along with the name if the form is submitted.

When tabbing into a series of same-named group of radio buttons, if one is checked, that one will receive focus. If they aren’t grouped together in source order, if one of the group is checked, tabbing into the group starts when the first one in the group is encountered, skipping all those that aren’t checked. In other words, if one is checked, tabbing skips the unchecked radio buttons in the group. If none are checked, the radio button group receives focus when the first button in the same name group is reached.

Once one of the radio buttons in a group has focus, using the arrow keys will navigate through all the radio buttons of the same name, even if the radio buttons are not grouped together in the source order.

§HTMLFormElement.elements

When an input element is given a name, that name becomes a property of the owning form element’s HTMLFormElement.elements property.

Warning: Avoid giving form elements a name that corresponds to a built-in property of the form, since you would then override the predefined property or method with this reference to the corresponding input.

source

pub fn pattern<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The pattern attribute

The pattern attribute, when specified, is a regular expression that the input’s value must match in order for the value to pass constraint validation. It must be a valid JavaScript regular expression, as used by the RegExp type, and as documented in our guide on regular expressions; the ‘u’ flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of Unicode code points, instead of as ASCII. No forward slashes should be specified around the pattern text.

If the pattern attribute is present but is not specified or is invalid, no regular expression is applied and this attribute is ignored completely. If the pattern attribute is valid and a non-empty value does not match the pattern, constraint validation will prevent form submission.

Tip: If using the pattern attribute, inform the user about the expected format by including explanatory text nearby. You can also include a title attribute to explain what the requirements are to match the pattern; most browsers will display this title as a tooltip. The visible explanation is required for accessibility. The tooltip is an enhancement.

source

pub fn placeholder<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The placeholder attribute

The placeholder attribute is a string that provides a brief hint to the user as to what kind of information is expected in the field. It should be a word or short phrase that demonstrates the expected type of data, rather than an explanatory message. The text must not include carriage returns or line feeds.

Note: The placeholder attribute is not as semantically useful as other ways to explain your form, and can cause unexpected technical issues with your content.

source

pub fn readonly<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The readonly attribute

If present, indicates that the user should not be able to edit the value of the input. The readonly attribute is supported text, search, url, tel, email, date, month, week, time, datetime-local, number, and password input types.

source

pub fn required<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The required attribute

If present, indicates that the user must specify a value for the input before the owning form can be submitted. The required attribute is supported text, search, url, tel, email, date, month, week, time, datetime-local, number, password, checkbox, radio, and file.

source

pub fn size<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The size attribute

Valid for email, password, tel, and text input types only. Specifies how much of the input is shown. Basically creates same result as setting CSS width property with a few specialities. The actual unit of the value depends on the input type. For password and text it’s number of characters (or em units) and pixels for others. CSS width takes precedence over size attribute.

source

pub fn src<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The src attribute

Valid for the image input button only, the src is string specifying the URL of the image file to display to represent the graphical submit button. See the image input type.

source

pub fn step<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The step attribute

Valid for the numeric input types, including number, date/time input types, and range, the step attribute is a number that specifies the granularity that the value must adhere to.

If not explicitly included, step defaults to 1 for number and range, and 1 unit type (second, week, month, day) for the date/time input types. The value can must be a positive number—integer or float—or the special value any, which means no stepping is implied, and any value is allowed (barring other constraints, such as min and max).

If any is not explicity set, valid values for the number, date/time input types, and range input types are equal to the basis for stepping - the min value and increments of the step value, up to the max value, if specified.

For example, if you have <input type="number" min="10" step="2">, then any even integer, 10 or greater, is valid. If omitted, <input type="number">, any integer is valid, but floats (like 4.2) are not valid, because step defaults to 1. For 4.2 to be valid, step would have had to be set to any, 0.1, 0.2, or any the min value would have had to be a number ending in .2, such as <input type="number" min="-5.2">.

Note: When the data entered by the user doesn’t adhere to the stepping configuration, the value is considered invalid in contraint validation and will match the :invalid pseudoclass.

The default stepping value for number inputs is 1, allowing only integers to be entered, unless the stepping base is not an integer. The default stepping value for time is 1 second (with 900 being equal to 15 minutes).

source

pub fn tabindex<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The tabindex attribute

Global attribute valid for all elements, including all the input types, an integer attribute indicating if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation. As all input types except for input of type hidden are focusable, this attribute should not be used on form controls, because doing so would require the management of the focus order for all elements within the document with the risk of harming usability and accessibility if done incorrectly.

source

pub fn title<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The title attribute

Global attribute valid for all elements, including all input types, containing a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip. The title should NOT be used as the primary explanation of the purpose of the form control. Instead, use the <label> element with a for attribute set to the form control’s id attribute.

source

pub fn type<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The type attribute

A string specifying the type of control to render. For example, to create a checkbox, a value of checkbox is used. If omitted (or an unknown value is specified), the input type text is used, creating a plaintext input field.

Permitted values are listed in <input> types above.

source

pub fn value<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The value attribute

The input control’s value. When specified in the HTML, this is the initial value, and from then on it can be altered or retrieved at any time using JavaScript to access the respective HTMLInputElement object’s value property. The value attribute is always optional, though should be considered mandatory for checkbox, radio, and hidden.

source

pub fn width<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The width attribute

Valid for the image input button only, the width is the width of the image file to display to represent the graphical submit button. See the image input type.

source

pub fn on_invalid( self, f: impl FnMut(Event, HtmlInputElement) + 'static ) -> Self

source

pub fn on_select(self, f: impl FnMut(Event, HtmlInputElement) + 'static) -> Self

source

pub fn set_checked(self, value: impl Signal<Item = bool> + 'static) -> Self

source

pub fn set_value(self, value: impl Signal<Item = String> + 'static) -> Self

source§

impl<InitParam, Dom> Input<Template<InitParam, Dom>>
where Dom: InstantiableDom, InitParam: 'static,

source

pub fn on_instantiate( self, f: impl 'static + Fn(Input<Dom>, &InitParam) -> Input<Dom> ) -> Self

source§

impl<InitParam, Dom> Input<Template<InitParam, Dom>, Const>
where Dom: InstantiableDom, InitParam: 'static,

source

pub fn instantiate(&self, param: &InitParam) -> Input<Dom>

Trait Implementations§

source§

impl<Dom: Dom> AriaElement for Input<Dom>

source§

fn role<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA role attribute
source§

fn aria_activedescendant<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-activedescendant Attribute Read more
source§

fn aria_atomic<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-atomic Attribute Read more
source§

fn aria_autocomplete<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-autocomplete Attribute Read more
source§

fn aria_braillelabel<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-braillelabel Attribute Read more
source§

fn aria_brailleroledescription<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

source§

fn aria_busy<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-busy Attribute Read more
source§

fn aria_checked<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-checked Attribute Read more
source§

fn aria_colcount<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<i64>,

The ARIA aria-colcount Attribute Read more
source§

fn aria_colindex<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<u64>,

The ARIA aria-colindex Attribute Read more
source§

fn aria_colindextext<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-colindextext Attribute Read more
source§

fn aria_colspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<u64>,

The ARIA aria-colspan Attribute Read more
source§

fn aria_controls<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-controls Attribute Read more
source§

fn aria_current<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-current Attribute Read more
source§

fn aria_describedby<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-describedby Attribute Read more
source§

fn aria_description<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-description Attribute Read more
source§

fn aria_details<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-details Attribute Read more
source§

fn aria_disabled<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-disabled Attribute Read more
source§

fn aria_errormessage<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-errormessage Attribute Read more
source§

fn aria_expanded<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-expanded Attribute Read more
source§

fn aria_flowto<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-flowto Attribute Read more
source§

fn aria_haspopup<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-haspopup Attribute Read more
source§

fn aria_hidden<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-hidden Attribute Read more
source§

fn aria_invalid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-invalid Attribute Read more
source§

fn aria_keyshortcuts<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-keyshortcuts Attribute Read more
source§

fn aria_label<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-label Attribute Read more
source§

fn aria_labelledby<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-labelledby Attribute Read more
source§

fn aria_level<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<u64>,

The ARIA aria-level Attribute Read more
source§

fn aria_live<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-live Attribute Read more
source§

fn aria_modal<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-modal Attribute Read more
source§

fn aria_multiline<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-multiline Attribute Read more
source§

fn aria_multiselectable<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-multiselectable Attribute Read more
source§

fn aria_orientation<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-orientation Attribute Read more
source§

fn aria_owns<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-owns Attribute Read more
source§

fn aria_placeholder<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-placeholder Attribute Read more
source§

fn aria_posinset<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<u64>,

The ARIA aria-posinset Attribute Read more
source§

fn aria_pressed<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-pressed Attribute Read more
source§

fn aria_readonly<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-readonly Attribute Read more
source§

fn aria_relevant<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-relevant Attribute Read more
source§

fn aria_required<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-required Attribute Read more
source§

fn aria_roledescription<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-roledescription Attribute Read more
source§

fn aria_rowcount<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<i64>,

The ARIA aria-rowcount Attribute Read more
source§

fn aria_rowindex<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<u64>,

The ARIA aria-rowindex Attribute Read more
source§

fn aria_rowindextext<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-rowindextext Attribute Read more
source§

fn aria_rowspan<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<u64>,

The ARIA aria-rowspan Attribute Read more
source§

fn aria_selected<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-selected Attribute Read more
source§

fn aria_setsize<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<i64>,

The ARIA aria-setsize Attribute Read more
source§

fn aria_sort<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The ARIA aria-sort Attribute Read more
source§

fn aria_valuemax<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<f64>,

The ARIA aria-valuemax Attribute Read more
source§

fn aria_valuemin<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<f64>,

The ARIA aria-valuemin Attribute Read more
source§

fn aria_valuenow<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<f64>,

The ARIA aria-valuenow Attribute Read more
source§

fn aria_valuetext<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The ARIA aria-valuetext Attribute Read more
source§

impl<Dom: Dom> Default for Input<Dom>

source§

fn default() -> Self

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

impl<Dom> Display for Input<Dom, Const>
where Dom: Dom,

source§

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

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

impl<Dom: Dom> Element for Input<Dom>

§

type Dom = Dom

§

type DomElement = HtmlInputElement

source§

fn class<'a, T>(self, class: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: 'a + AsRef<str>,

Add a class to the element. Read more
source§

fn classes<'a, T, Iter>( self, classes: impl RefSignalOrValue<'a, Item = Iter> ) -> Self
where T: 'a + AsRef<str>, Iter: 'a + IntoIterator<Item = T>,

Set the classes on an element Read more
source§

fn attribute<'a>( self, name: &str, value: impl RefSignalOrValue<'a, Item = impl Attribute> ) -> Self

Set an attribute Read more
source§

fn style_property<'a>( self, name: impl Into<String>, value: impl RefSignalOrValue<'a, Item = impl AsRef<str> + 'a> ) -> Self

Set an inline style property Read more
source§

fn effect(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self

Apply an effect after the next render. Read more
source§

fn effect_signal<T: 'static>( self, sig: impl Signal<Item = T> + 'static, f: impl Fn(&Self::DomElement, T) + Clone + 'static ) -> Self

Apply an effect after the next render each time a signal yields a new value.
source§

fn map_element(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self

Map a function over the element.
source§

fn map_element_signal<T: 'static>( self, sig: impl Signal<Item = T> + 'static, f: impl Fn(&Self::DomElement, T) + Clone + 'static ) -> Self

Map a function over the element each time a signal changes.
source§

fn handle(&self) -> ElementHandle<Self::Dom, Self::DomElement>

Get a handle to the element. Read more
source§

fn spawn_future(self, future: impl Future<Output = ()> + 'static) -> Self

Spawn a future on the element. Read more
source§

fn on(self, name: &'static str, f: impl FnMut(JsValue) + 'static) -> Self

Register an event handler. Read more
source§

impl<Dom: Dom> ElementEvents for Input<Dom>

source§

fn on_animationcancel( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_animationend( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_animationiteration( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_animationstart( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_auxclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_blur(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self

source§

fn on_click(self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static) -> Self

source§

fn on_compositionend( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_compositionstart( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_compositionupdate( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_contextmenu( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_dblclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_focusin( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_focusout( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_focus(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self

source§

fn on_fullscreenchange( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self

source§

fn on_fullscreenerror( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self

source§

fn on_gotpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_keydown( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_keyup( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_lostpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mousedown( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mouseenter( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mouseleave( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mousemove( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mouseout( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mouseover( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_mouseup( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointercancel( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerdown( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerenter( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerleave( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointermove( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerout( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerover( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerrawupdate( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_pointerup( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_transitioncancel( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_transitionend( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_transitionrun( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_transitionstart( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_scroll(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_scrollend(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_securitypolicyviolation( self, f: impl FnMut(SecurityPolicyViolationEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_touchcancel( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_touchend( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_touchmove( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_touchstart( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_wheel(self, f: impl FnMut(WheelEvent, Self::DomElement) + 'static) -> Self

source§

fn on_copy(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_cut(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_paste(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

impl<Dom: Dom> From<Input<Dom>> for GenericElement<Dom, Const>

source§

fn from(elem: Input<Dom, Mut>) -> Self

Converts to this type from the input type.
source§

impl<Dom: Dom, Mutability> From<Input<Dom, Mutability>> for GenericElement<Dom, Mutability>

source§

fn from(elem: Input<Dom, Mutability>) -> Self

Converts to this type from the input type.
source§

impl<Dom: Dom, Mutability> From<Input<Dom, Mutability>> for Node<Dom>

source§

fn from(elem: Input<Dom, Mutability>) -> Self

Converts to this type from the input type.
source§

impl<Dom: Dom> HtmlElement for Input<Dom>

source§

fn accesskey<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global accesskey Attribute Read more
source§

fn autocapitalize<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The Global autocapitalize Attribute Read more
source§

fn autofocus<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The Global autofocus Attribute Read more
source§

fn contenteditable<'a, T>( self, value: impl RefSignalOrValue<'a, Item = T> ) -> Self
where T: AsAttribute<String>,

The Global contenteditable Attribute Read more
source§

fn contextmenu<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global contextmenu Attribute Read more
source§

fn dir<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global dir Attribute Read more
source§

fn draggable<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global draggable Attribute Read more
source§

fn enterkeyhint<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global enterkeyhint Attribute Read more
source§

fn exportparts<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global exportparts Attribute Read more
source§

fn hidden<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<bool>,

The Global hidden Attribute Read more
source§

fn id<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global id Attribute Read more
source§

fn inputmode<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global inputmode Attribute Read more
source§

fn is<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global is Attribute Read more
source§

fn itemid<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global itemid Attribute Read more
source§

fn itemprop<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global itemprop Attribute Read more
source§

fn itemref<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global itemref Attribute Read more
source§

fn itemscope<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global itemscope Attribute Read more
source§

fn itemtype<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global itemtype Attribute Read more
source§

fn lang<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global lang Attribute Read more
source§

fn nonce<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global nonce Attribute Read more
source§

fn part<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global part Attribute Read more
source§

fn slot<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global slot Attribute Read more
source§

fn spellcheck<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global spellcheck Attribute Read more
source§

fn style<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global style Attribute Read more
source§

fn tabindex<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<i32>,

The Global tabindex Attribute Read more
source§

fn title<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global title Attribute Read more
source§

fn translate<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The Global translate Attribute Read more
source§

impl<Dom: Dom> HtmlElementEvents for Input<Dom>

source§

fn on_beforeinput( self, f: impl FnMut(InputEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_change(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_error(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

fn on_input(self, f: impl FnMut(InputEvent, Self::DomElement) + 'static) -> Self

source§

fn on_drag(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self

source§

fn on_dragend( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_dragenter( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_dragleave( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_dragover( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_dragstart( self, f: impl FnMut(DragEvent, Self::DomElement) + 'static ) -> Self

source§

fn on_drop(self, f: impl FnMut(DragEvent, Self::DomElement) + 'static) -> Self

source§

fn on_load(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self

source§

impl<Dom: Dom, Mutability> InDom for Input<Dom, Mutability>

§

type Dom = Dom

source§

impl<Dom: Dom, Mutability> Value for Input<Dom, Mutability>

Auto Trait Implementations§

§

impl<Dom, Mutability> Freeze for Input<Dom, Mutability>
where <Dom as Dom>::Element: Freeze,

§

impl<Dom = Dry, Mutability = Mut> !RefUnwindSafe for Input<Dom, Mutability>

§

impl<Dom = Dry, Mutability = Mut> !Send for Input<Dom, Mutability>

§

impl<Dom = Dry, Mutability = Mut> !Sync for Input<Dom, Mutability>

§

impl<Dom, Mutability> Unpin for Input<Dom, Mutability>
where <Dom as Dom>::Element: Unpin, Mutability: Unpin,

§

impl<Dom = Dry, Mutability = Mut> !UnwindSafe for Input<Dom, Mutability>

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> 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<'a, T> RefSignalOrValue<'a> for T
where T: RefValue<'a> + 'a,

§

type Item = T

The underlying type of the value or signal.
§

type Map<'b: 'a, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b, R: RefSignalOrValue<'b, Item = R> + 'b> = R

The return type for Self::map. Read more
§

type Signal = Always<<T as RefSignalOrValue<'a>>::Item>

The signal type. Use Always for value types.
source§

fn map<'b, F, R>( self, callback: F ) -> <T as RefSignalOrValue<'a>>::Map<'b, F, R>
where 'b: 'a, R: RefSignalOrValue<'b, Item = R> + 'b, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b,

Map a function over this signal/value to produce a new signal/value.
source§

fn select<FVal, FSig, Data, Out>( self, fn_val: FVal, _fn_sig: FSig, data: Data ) -> Out
where FVal: FnOnce(Data, <T as RefSignalOrValue<'a>>::Item) -> Out, FSig: FnOnce(Data, <T as RefSignalOrValue<'a>>::Signal) -> Out,

Select a function based on whether this is a signal or value. Read more
source§

fn select_spawn<FVal, FSig, Task, Exec>( self, fn_val: FVal, _fn_sig: FSig, executor: &mut Exec )
where FVal: FnOnce(&mut Exec, <T as RefSignalOrValue<'a>>::Item), FSig: FnOnce(&mut Exec, <T as RefSignalOrValue<'a>>::Signal) -> Task, Task: Future<Output = ()> + 'a, Exec: Executor,

Select a function based on whether this is a signal or value. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default 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>,

§

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>,

§

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.
source§

impl<D, T> ChildElement<D> for T
where D: Dom, T: Into<GenericElement<D, Const>> + Into<Node<D>> + Value + 'static,

source§

impl<D, T> ChildNode<D> for T
where D: Dom, T: Into<Node<D>> + Value + 'static,

source§

impl<T> RefValue<'static> for T
where T: Value,

source§

impl<T> SignalOrValue for T
where T: RefSignalOrValue<'static>,