pub struct MenuTextStyle {
pub selected_text_style: Style,
pub text_style: Style,
pub description_style: Style,
pub selected_match_style: Style,
pub match_style: Style,
}Expand description
Struct to store the menu style
Fields§
§selected_text_style: StyleText style for selected text in a menu
text_style: StyleText style for not selected text in the menu
description_style: StyleText style for the item description
selected_match_style: StyleText style of the parts of the suggestions that match the typed text when the suggestion is selected
match_style: StyleText style of the parts of the suggestions that match the typed text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuTextStyle
impl RefUnwindSafe for MenuTextStyle
impl Send for MenuTextStyle
impl Sync for MenuTextStyle
impl Unpin for MenuTextStyle
impl UnwindSafe for MenuTextStyle
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> 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