(&self, name_hash: u64)
| 67 | |
| 68 | #[inline] |
| 69 | pub fn action_index(&self, name_hash: u64) -> Option<usize> { |
| 70 | self.action_slots |
| 71 | .binary_search_by_key(&name_hash, |(hash, _)| *hash) |
| 72 | .ok() |
| 73 | .map(|slot| self.action_slots[slot].1) |
| 74 | } |
| 75 | |
| 76 | #[inline] |
| 77 | pub fn action_count(&self) -> usize { |
no test coverage detected