From 759a08a5773046a9182ba8359795c7f1a849ddf7 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 17 May 2026 22:00:08 +0800 Subject: Remove module-level doc comments --- mingling_macros/src/dispatch_tree_gen.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'mingling_macros/src/dispatch_tree_gen.rs') diff --git a/mingling_macros/src/dispatch_tree_gen.rs b/mingling_macros/src/dispatch_tree_gen.rs index 3967aac..a2cd52c 100644 --- a/mingling_macros/src/dispatch_tree_gen.rs +++ b/mingling_macros/src/dispatch_tree_gen.rs @@ -1,18 +1,3 @@ -//! Dispatch Tree Generation -//! -//! This module generates the dispatch tree code for the `dispatch_tree` feature. -//! It builds a compact, hardcoded match tree at compile time to achieve O(len) -//! command dispatch. -//! -//! # Algorithm -//! -//! For each depth, group nodes by the character at that depth. -//! - If a group has only one node: emit `starts_with` check for the full name. -//! - If a group has multiple nodes: emit a `match raw_chars.nth(depth)` arm and recurse. -//! - At the leaf: call `Dispatcher::begin` on the matched dispatcher. -//! -//! Names are matched with a trailing space (e.g. "hello ") to ensure exact boundary. - use proc_macro2::TokenStream; use quote::quote; use std::collections::BTreeMap; -- cgit