[−][src]Struct prototty_menu::MenuInstanceView
Fields
entry_view: E
Methods
impl<E> MenuInstanceView<E>
[src]
Trait Implementations
impl<E> MenuIndexFromScreenCoord for MenuInstanceView<E>
[src]
fn menu_index_from_screen_coord(
&self,
len: usize,
coord: Coord
) -> Option<usize>
[src]
&self,
len: usize,
coord: Coord
) -> Option<usize>
impl<'a, T, E> View<&'a MenuInstance<T>> for MenuInstanceView<E> where
T: Clone,
E: MenuEntryView<T>,
[src]
T: Clone,
E: MenuEntryView<T>,
fn view<F: Frame, C: ColModify>(
&mut self,
menu_instance: &'a MenuInstance<T>,
context: ViewContext<C>,
frame: &mut F
)
[src]
&mut self,
menu_instance: &'a MenuInstance<T>,
context: ViewContext<C>,
frame: &mut F
)
fn size<C>(&mut self, data: T, context: ViewContext<C>) -> Size where
C: ColModify,
[src]
C: ColModify,
fn view_size<F, C>(
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F
) -> Size where
C: ColModify,
F: Frame,
[src]
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F
) -> Size where
C: ColModify,
F: Frame,
impl<'a, T, E> View<(&'a MenuInstance<T>, &'a <E as MenuEntryExtraView<T>>::Extra)> for MenuInstanceView<E> where
T: Clone,
E: MenuEntryExtraView<T>,
[src]
T: Clone,
E: MenuEntryExtraView<T>,
fn view<F: Frame, C: ColModify>(
&mut self,
(menu_instance, extra): (&'a MenuInstance<T>, &'a E::Extra),
context: ViewContext<C>,
frame: &mut F
)
[src]
&mut self,
(menu_instance, extra): (&'a MenuInstance<T>, &'a E::Extra),
context: ViewContext<C>,
frame: &mut F
)
fn size<C>(&mut self, data: T, context: ViewContext<C>) -> Size where
C: ColModify,
[src]
C: ColModify,
fn view_size<F, C>(
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F
) -> Size where
C: ColModify,
F: Frame,
[src]
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F
) -> Size where
C: ColModify,
F: Frame,
Auto Trait Implementations
impl<E> RefUnwindSafe for MenuInstanceView<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for MenuInstanceView<E> where
E: Send,
E: Send,
impl<E> Sync for MenuInstanceView<E> where
E: Sync,
E: Sync,
impl<E> Unpin for MenuInstanceView<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for MenuInstanceView<E> where
E: UnwindSafe,
E: UnwindSafe,
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>,