pub struct PagerSearch<W: Widget<U>, U: Ui> { /* private fields */ }Expand description
The searcher PromptMode for a Pagered Widget
Trait Implementations§
Source§impl<W: Widget<U>, U: Ui> PromptMode<U> for PagerSearch<W, U>
impl<W: Widget<U>, U: Ui> PromptMode<U> for PagerSearch<W, U>
Source§type ExitWidget = W
type ExitWidget = W
What
Widget to exit to, upon pressing enter, esc, or
backspace in an empty PromptLineSource§fn before_exit(&mut self, pa: &mut Pass, text: Text, _: &<U as Ui>::Area)
fn before_exit(&mut self, pa: &mut Pass, text: Text, _: &<U as Ui>::Area)
What to do before exiting the
PromptMode Read moreSource§fn return_handle(&self) -> Option<Handle<Self::ExitWidget, U>>
fn return_handle(&self) -> Option<Handle<Self::ExitWidget, U>>
An optional returning
Handle for the ExitWidgetSource§fn on_switch(&mut self, pa: &mut Pass, text: Text, area: &U::Area) -> Text
fn on_switch(&mut self, pa: &mut Pass, text: Text, area: &U::Area) -> Text
What to do when switchin onto this
PromptMode Read moreSource§fn once()
fn once()
Things to do when this
PromptMode is first instantiatedAuto Trait Implementations§
impl<W, U> !Freeze for PagerSearch<W, U>
impl<W, U> !RefUnwindSafe for PagerSearch<W, U>
impl<W, U> Send for PagerSearch<W, U>
impl<W, U> Sync for PagerSearch<W, U>
impl<W, U> Unpin for PagerSearch<W, U>
impl<W, U> !UnwindSafe for PagerSearch<W, U>
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