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
sourceimpl 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>
pub fn search<'v>(
&'v self,
prefix: &str,
stype: Option<SelectionType>,
sel_count: Option<usize>,
extension: Option<&str>
) -> PrefixSearchResult<'v, &Verb>
pub fn key_desc_of_internal_stype(
&self,
internal: Internal,
stype: SelectionType
) -> Option<String>
pub fn key_desc_of_internal(&self, internal: Internal) -> Option<String>
Auto Trait Implementations
impl RefUnwindSafe for VerbStore
impl Send for VerbStore
impl Sync for VerbStore
impl Unpin for VerbStore
impl UnwindSafe for VerbStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more