[−][src]Struct prototty_menu::MenuEntryStylePair
An implementation of MenuEntryView
for menus whose entries
can be converted into string slices.
Fields
normal: Style
selected: Style
Methods
impl MenuEntryStylePair
[src]
Trait Implementations
impl<T> MenuEntryView<T> for MenuEntryStylePair where
&'a T: Into<&'a str>,
[src]
&'a T: Into<&'a str>,
fn normal<F: Frame, C: ColModify>(
&mut self,
entry: &T,
context: ViewContext<C>,
frame: &mut F
) -> MenuEntryViewInfo
[src]
&mut self,
entry: &T,
context: ViewContext<C>,
frame: &mut F
) -> MenuEntryViewInfo
fn selected<F: Frame, C: ColModify>(
&mut self,
entry: &T,
context: ViewContext<C>,
frame: &mut F
) -> MenuEntryViewInfo
[src]
&mut self,
entry: &T,
context: ViewContext<C>,
frame: &mut F
) -> MenuEntryViewInfo
Auto Trait Implementations
impl RefUnwindSafe for MenuEntryStylePair
impl Send for MenuEntryStylePair
impl Sync for MenuEntryStylePair
impl Unpin for MenuEntryStylePair
impl UnwindSafe for MenuEntryStylePair
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,