diff options
Diffstat (limited to 'mingling_core/src/program/collection.rs')
| -rw-r--r-- | mingling_core/src/program/collection.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mingling_core/src/program/collection.rs b/mingling_core/src/program/collection.rs index 078f736..36a0c94 100644 --- a/mingling_core/src/program/collection.rs +++ b/mingling_core/src/program/collection.rs @@ -31,6 +31,14 @@ pub trait ProgramCollect { raw: &[String], ) -> Result<AnyOutput<Self::Enum>, crate::error::ProgramInternalExecuteError>; + #[cfg(not(feature = "dispatch_tree"))] + /// Use a prefix tree to quickly match arguments and dispatch to an Entry + fn dispatch_args_trie( + _raw: &[String], + ) -> Result<AnyOutput<Self::Enum>, crate::error::ProgramInternalExecuteError> { + unreachable!() + } + /// Get all registered dispatcher names from the program #[cfg(feature = "dispatch_tree")] fn get_nodes() -> Vec<(String, &'static (dyn Dispatcher<Self::Enum> + Send + Sync))>; |
