pub fn dispatch<K, C, R, O, E>(
table: &[CommandEntry<K, C, R, O, E>],
context: &mut C,
resources: &mut R,
) -> Result<O, DispatchError<E>>where
K: PartialEq,
C: CommandKey<K>,Expand description
Dispatches through a table using the key exposed by the context.
This is the smallest API for the common exact-key case. Construct a
Dispatcher when matching requires a custom strategy.