pub enum CommandType {
Colon(String),
Key(KeyCode),
}
Expand description
Type of Command
.
Variants§
Colon(String)
Waits for :
key and then the command input, until Enter is pressed.
Key(KeyCode)
Waits for key input.
Trait Implementations§
Source§impl Clone for CommandType
impl Clone for CommandType
Source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for CommandType
impl PartialEq for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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