pub struct Action<M> { /* private fields */ }Expand description
Something the widget can do, from Widget::actions, for the dormer:
the host’s search dialog. Typing finds it by its title, subtitle and keywords, and picking it
sends message to the widget.
Implementations§
Source§impl<M> Action<M>
impl<M> Action<M>
Sourcepub fn subtitle(self, text: impl Into<String>) -> Self
pub fn subtitle(self, text: impl Into<String>) -> Self
A line under the title: what it acts on, or what kind of thing it is.
Sourcepub fn keywords(
self,
words: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn keywords( self, words: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Other words it should be found by, not shown.
pub fn map<N: 'static>(
self,
f: &(impl Fn(M) -> N + Clone + 'static),
) -> Action<N>where
M: 'static,
pub fn title(&self) -> &str
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Action<M>
impl<M> !Send for Action<M>
impl<M> !Sync for Action<M>
impl<M> !UnwindSafe for Action<M>
impl<M> Freeze for Action<M>
impl<M> Unpin for Action<M>
impl<M> UnsafeUnpin for Action<M>
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