/// return the index of the verb having the long name. This function is meant
/// for internal access when it's sure it can't failed (i.e. for a builtin)
/// It looks for verbs by key, starting from the builtins, to
/// ensure it hasn't been overriden.
return the index of the verb having the long name. This function is meant
for internal access when it's sure it can't failed
It looks for verbs by key, starting from the builtins, to
ensure it hasn't been overriden.
return the index of the verb having the long name . This function is meant for internal access when it ' s sure it can ' t failed It looks for verbs by key starting from the builtins to ensure it hasn ' t been overriden .
pub fn index_of(&self, name: &str) -> usize {
        for i in 0..self.verbs.len() {
            if self.verbs[i].invocation.key == name {
                return i;
            }
        }
        panic!("invalid verb search");
    }
pub fn index_of ( & self , name : & str ) -> usize { for i in 0 .. self . verbs . len ( ) { if self . verbs [ i ] . invocation . key == name { return i ; } } panic ! ( " " ) ; }
return the index of the verb having the long name.
return the index of the verb having the long name .
&self
name
&str