Trait mg_settings::SpecialCommand
[−]
[src]
pub trait SpecialCommand where
Self: Sized, { fn identifier_to_command(
identifier: char,
input: &str
) -> Result<Self, String>; fn is_identifier(character: char) -> bool; fn is_incremental(identifier: char) -> bool; }
Trait for converting an identifier like "/" to a special command.
Required Methods
fn identifier_to_command(identifier: char, input: &str) -> Result<Self, String>
Convert an identifier like "/" to a special command.
fn is_identifier(character: char) -> bool
Check if a character is a special command identifier.
fn is_incremental(identifier: char) -> bool
Check if the identifier is declared always
.
The always option means that the command is activated every time a character is typed (like
incremental search).