Enum broot::command::Command [−][src]
pub enum Command {
None,
VerbEdit(VerbInvocation),
VerbInvocate(VerbInvocation),
Internal {
internal: Internal,
input_invocation: Option<VerbInvocation>,
},
VerbTrigger {
index: usize,
input_invocation: Option<VerbInvocation>,
},
PatternEdit {
raw: String,
expr: BeTree<PatternOperator, PatternParts>,
},
Click(u16, u16),
DoubleClick(u16, u16),
}
Expand description
a command which may result in a change in the application state.
It may come from a shortcut, from the parsed input, from an argument given on launch.
Variants
no command
VerbEdit(VerbInvocation)
a verb invocation, unfinished (user didn’t hit enter)
Tuple Fields of VerbEdit
VerbInvocate(VerbInvocation)
verb invocation, finished (coming from –cmd, or after the user hit enter)
Tuple Fields of VerbInvocate
call of an internal done without the input (using a trigger key for example)
Fields of Internal
internal: Internal
input_invocation: Option<VerbInvocation>
call of a verb done without the input (using a trigger key for example)
Fields of VerbTrigger
index: usize
input_invocation: Option<VerbInvocation>
a pattern being edited
Fields of PatternEdit
raw: String
expr: BeTree<PatternOperator, PatternParts>
a mouse click
a mouse double-click Always come after a simple click at same position
Implementations
build a command from the parsed string representation
The command being finished is the difference between a command being edited and a command launched (which happens on enter in the input).
tells whether this action is a verb being invocated on enter in the input field
create a command from a raw input.
finished
makes the command an executed form,
it’s equivalent to using the Enter key in the Gui.
build a non executed command from a pattern
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl UnwindSafe for Command
Blanket Implementations
Mutably borrows from an owned value. Read more