pub enum Command {
Copy,
Cut,
Paste,
Undo,
Redo,
Save,
New,
}
Expand description
Common keyboard commands such at copy, cut and paste.
Variants
Copy
cmd-C
Cut
cmd-X
Paste
cmd-V
Undo
cmd-Z
Redo
cmd-shift-Z
Save
cmd-S
New
cmd-N
Implementations
sourceimpl Command
impl Command
sourcepub fn shortcut_str(self) -> &'static str
pub fn shortcut_str(self) -> &'static str
Human-readable key combination for this command.
Trait Implementations
sourceimpl PartialEq<Command> for Command
impl PartialEq<Command> for Command
impl Copy for Command
impl Eq for Command
impl StructuralEq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more