[−][src]Struct broot::verb_store::VerbStore
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
impl VerbStore
[src]
pub fn new() -> VerbStore
[src]
pub fn init(&mut self, conf: &Conf)
[src]
pub fn search<'v>(&'v self, prefix: &str) -> PrefixSearchResult<'v, &Verb>
[src]
pub fn index_of(&self, name: &str) -> usize
[src]
return the index of the verb having the long name. This function is meant for internal access when it's sure it can't fail (i.e. for a builtin) It looks for verbs by name, starting from the builtins, to ensure it hasn't been overriden.
pub fn index_of_key(&self, key: KeyEvent) -> Option<usize>
[src]
return the index of the verb which is triggered by the given keyboard key, if any
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,