[][src]Struct pixel_widgets::widget::input::Input

pub struct Input<'a, T, F> { /* fields omitted */ }

Editable text input

Implementations

impl<'a, T, F: Fn(String) -> T> Input<'a, T, F>[src]

pub fn new(state: &'a mut State, placeholder: &'a str, on_change: F) -> Self[src]

Construct a new Input

pub fn password(
    state: &'a mut State,
    placeholder: &'a str,
    on_change: F
) -> Self
[src]

Construct a new Input that renders the text as dots, for passwords.

Trait Implementations

impl<'a, T: 'a + Send, F: 'a + Send + Fn(String) -> T> IntoNode<'a, T> for Input<'a, T, F>[src]

impl<'a, T: 'a + Send, F: 'a + Send + Fn(String) -> T> Widget<'a, T> for Input<'a, T, F>[src]

Auto Trait Implementations

impl<'a, T, F> RefUnwindSafe for Input<'a, T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<'a, T, F> Send for Input<'a, T, F> where
    F: Send,
    T: Send
[src]

impl<'a, T, F> Sync for Input<'a, T, F> where
    F: Sync,
    T: Sync
[src]

impl<'a, T, F> Unpin for Input<'a, T, F> where
    F: Unpin,
    T: Unpin
[src]

impl<'a, T, F> !UnwindSafe for Input<'a, T, F>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.