Struct pager_rs::Command [−][src]
pub struct Command {
pub cmd: Vec<CommandType>,
pub desc: String,
pub func: &'static dyn Fn(&mut State) -> bool,
}
Fields
cmd: Vec<CommandType>
When any of the values matched with input from user, command will be executed.
desc: String
Description of the command, can be seen in help text.
func: &'static dyn Fn(&mut State) -> bool
The function that runs when command executed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Command
impl !UnwindSafe for Command
Blanket Implementations
Mutably borrows from an owned value. Read more