pub struct TextInputStyle {
pub base: BaseStyle,
pub placeholder_style: Option<Style>,
pub cursor_style: Option<Style>,
}Expand description
Unified styling for TextInput
Fields§
§base: BaseStyleShared base style
placeholder_style: Option<Style>Style for placeholder text
cursor_style: Option<Style>Style for cursor (when focused)
Implementations§
Source§impl TextInputStyle
impl TextInputStyle
Sourcepub fn borderless() -> Self
pub fn borderless() -> Self
Create a style with no border
Trait Implementations§
Source§impl Clone for TextInputStyle
impl Clone for TextInputStyle
Source§fn clone(&self) -> TextInputStyle
fn clone(&self) -> TextInputStyle
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 ComponentStyle for TextInputStyle
impl ComponentStyle for TextInputStyle
Source§impl Debug for TextInputStyle
impl Debug for TextInputStyle
Auto Trait Implementations§
impl Freeze for TextInputStyle
impl RefUnwindSafe for TextInputStyle
impl Send for TextInputStyle
impl Sync for TextInputStyle
impl Unpin for TextInputStyle
impl UnwindSafe for TextInputStyle
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