pub struct TextInputBuilder { /* private fields */ }Expand description
Create TextInput with a builder.
Implementations§
Source§impl TextInputBuilder
impl TextInputBuilder
Sourcepub const fn max_length(self, max_length: u16) -> Self
pub const fn max_length(self, max_length: u16) -> Self
Set the maximum number of characters allowed to be entered into this text input.
Sourcepub const fn min_length(self, min_length: u16) -> Self
pub const fn min_length(self, min_length: u16) -> Self
Set the minimum number of characters allowed to be entered into this text input.
Sourcepub fn placeholder(self, placeholder: String) -> Self
pub fn placeholder(self, placeholder: String) -> Self
Set the placeholder of this text input.
Trait Implementations§
Source§impl Clone for TextInputBuilder
impl Clone for TextInputBuilder
Source§fn clone(&self) -> TextInputBuilder
fn clone(&self) -> TextInputBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextInputBuilder
impl Debug for TextInputBuilder
Source§impl Hash for TextInputBuilder
impl Hash for TextInputBuilder
Source§impl PartialEq for TextInputBuilder
impl PartialEq for TextInputBuilder
impl Eq for TextInputBuilder
impl StructuralPartialEq for TextInputBuilder
Auto Trait Implementations§
impl Freeze for TextInputBuilder
impl RefUnwindSafe for TextInputBuilder
impl Send for TextInputBuilder
impl Sync for TextInputBuilder
impl Unpin for TextInputBuilder
impl UnwindSafe for TextInputBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.