cushy::widgets::input

Trait InputValue

Source
pub trait InputValue<Storage>: IntoDynamic<Storage> + Sized
where Storage: InputStorage,
{ // Provided methods fn into_input(self) -> Input<Storage> { ... } fn to_input(&self) -> Input<Storage> where Self: Clone { ... } }
Expand description

A type that can be converted into a Dynamic containing Storage.

Provided Methods§

Source

fn into_input(self) -> Input<Storage>

Returns this string as a text input widget.

Source

fn to_input(&self) -> Input<Storage>
where Self: Clone,

Returns this string as a text input widget.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> InputValue<Cow<'static, str>> for T
where T: IntoDynamic<Cow<'static, str>>,

Source§

impl<T> InputValue<String> for T
where T: IntoDynamic<String>,

Source§

impl<T> InputValue<CowString> for T

Source§

impl<T> InputValue<MaskedString> for T