pub struct TextInput<'a> { /* private fields */ }Implementations§
Source§impl<'a> TextInput<'a>
impl<'a> TextInput<'a>
pub fn new() -> Self
pub fn cursor_style(self, style: Style) -> Self
pub fn text_style(self, style: Style) -> Self
pub fn border_style(self, style: Style) -> Self
pub fn borders(self, borders: Borders) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
pub fn placeholder(self, placeholder: &'a str) -> Self
pub fn bg_color(self, color: Color) -> Self
pub fn rows(self, rows: u16) -> Self
pub fn cols(self, cols: u16) -> Self
pub fn scroll_padding(self, padding: u16) -> Self
pub fn scroll_reserve(self, reserve: u16) -> Self
pub fn required_height(&self) -> u16
Trait Implementations§
Source§impl StatefulWidget for TextInput<'_>
impl StatefulWidget for TextInput<'_>
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> UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more