pub struct TextStyle {
pub style: Style,
pub focus: Option<Style>,
pub select: Option<Style>,
pub invalid: Option<Style>,
pub on_focus_gained: Option<TextFocusGained>,
pub on_focus_lost: Option<TextFocusLost>,
pub scroll: Option<ScrollStyle>,
pub block: Option<Block<'static>>,
pub border_style: Option<Style>,
pub non_exhaustive: NonExhaustive,
}Expand description
Combined style for the widget.
Fields§
§style: Style§focus: Option<Style>§select: Option<Style>§invalid: Option<Style>§on_focus_gained: Option<TextFocusGained>Focus behaviour.
on_focus_lost: Option<TextFocusLost>Focus behaviour.
scroll: Option<ScrollStyle>§block: Option<Block<'static>>§border_style: Option<Style>§non_exhaustive: NonExhaustiveTrait Implementations§
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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