pub struct ShortcutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Shortcut
objects.
Implementations§
Source§impl ShortcutBuilder
impl ShortcutBuilder
Sourcepub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
pub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
The action that gets activated by this shortcut.
Sourcepub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
pub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
The trigger that triggers this shortcut.
Auto Trait Implementations§
impl Freeze for ShortcutBuilder
impl RefUnwindSafe for ShortcutBuilder
impl !Send for ShortcutBuilder
impl !Sync for ShortcutBuilder
impl Unpin for ShortcutBuilder
impl UnwindSafe for ShortcutBuilder
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