diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-15 19:31:23 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-15 19:33:45 +0800 |
| commit | 8b2bbdef88f47838ed0326f5c9cf86bac84babde (patch) | |
| tree | cab7e7d492e4778a8084919459e0e8f40cc0827f /mingling_picker/src/lib.rs | |
| parent | 5894aa72a8e63f8b6d095678fe58e88fd64836a1 (diff) | |
feat(picker): add builtin bool pickable and parselib matcher framework
Add `Pickable` implementation for `bool` and the supporting `Matcher`
trait
with utility functions for argument matching. Expose `pickable_needed`
and
`matcher_needed` modules for downstream trait implementors.
Diffstat (limited to 'mingling_picker/src/lib.rs')
| -rw-r--r-- | mingling_picker/src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs index bee2c50..7e48db7 100644 --- a/mingling_picker/src/lib.rs +++ b/mingling_picker/src/lib.rs @@ -1,3 +1,5 @@ +mod builtin; + mod picker; pub use picker::*; @@ -20,6 +22,17 @@ pub mod macros { pub use mingling_picker_macros::*; } +/// Provides the types necessary for implementing the `Pickable` trait +pub mod pickable_needed { + pub use crate::{Pickable, PickerArgResult, PickerFlag, PickerFlagAttr, TagPhaseContext}; +} + +/// Provides the types necessary for implementing the `Matcher` trait +pub mod matcher_needed { + pub use crate::PickerArgInfo; + pub use crate::parselib::{MaskedArg, Matcher, ParserStyle}; +} + #[cfg(feature = "mingling_support")] mod corebind; |
