pub struct StyleState {
pub text: Style,
pub placeholder: Style,
pub suggestion: Style,
pub prompt: Style,
}Expand description
StyleState that will be applied to the text area.
StyleState can be applied to focused and unfocused states to change the styles depending on the focus state.
Fields§
§text: StyleStyle for the text.
placeholder: StyleStyle for the placeholder.
suggestion: StyleStyle for the suggestion.
prompt: StyleStyle for the prompt.
Trait Implementations§
Source§impl Clone for StyleState
impl Clone for StyleState
Source§fn clone(&self) -> StyleState
fn clone(&self) -> StyleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StyleState
impl RefUnwindSafe for StyleState
impl Send for StyleState
impl Sync for StyleState
impl Unpin for StyleState
impl UnsafeUnpin for StyleState
impl UnwindSafe for StyleState
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