pub struct VerbStore {
pub verbs: Vec<Verb>,
}
Expand description
Provide access to the verbs:
- the built-in ones
- the user defined ones A user defined verb can replace a built-in. When the user types some keys, we select a verb
- if the input exactly matches a shortcut or the name
- if only one verb name starts with the input
Fields§
§verbs: Vec<Verb>
Implementations§
source§impl VerbStore
impl VerbStore
pub fn new(conf: &mut Conf) -> Result<Self, ConfError>
pub fn search_sel_info<'v>( &'v self, prefix: &str, sel_info: SelInfo<'_> ) -> PrefixSearchResult<'v, &Verb>
pub fn search_prefix<'v>( &'v self, prefix: &str ) -> PrefixSearchResult<'v, &Verb>
sourcepub fn search_sel_info_unique<'v>(
&'v self,
prefix: &str,
sel_info: SelInfo<'_>
) -> Option<&'v Verb>
pub fn search_sel_info_unique<'v>( &'v self, prefix: &str, sel_info: SelInfo<'_> ) -> Option<&'v Verb>
Return either the only match, or None if there’s not exactly one match