pub trait TextValue: Clone + 'static {
// Required methods
fn text(&self) -> String;
fn shows(&self, text: &str) -> bool;
fn edit(&self, text: String);
// Provided method
fn touch(&self) { ... }
}Expand description
A value edited as text: text-like and numeric inputs, textarea, a single select, and the value a radio group chooses.
Signal<T> shows T with Display and parses edits with FromStr. Text
that does not parse, such as a half-typed number, leaves the signal unchanged.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".