pub struct TextInput<'a> { /* private fields */ }
Implementations§
Source§impl<'a> TextInput<'a>
impl<'a> TextInput<'a>
pub fn default(self, v: impl Into<String>) -> Self
pub fn required(self) -> Self
pub fn min_len(self, n: usize) -> Self
pub fn max_len(self, n: usize) -> Self
pub fn validate<F>(self, f: F) -> Self
pub fn mask(self, ch: char) -> Self
pub fn get(self) -> Result<String, String>
Auto Trait Implementations§
impl<'a> Freeze for TextInput<'a>
impl<'a> !RefUnwindSafe for TextInput<'a>
impl<'a> Send for TextInput<'a>
impl<'a> Sync for TextInput<'a>
impl<'a> Unpin for TextInput<'a>
impl<'a> !UnwindSafe for TextInput<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more