diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-15 03:52:25 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-15 03:52:25 +0800 |
| commit | 559ff1a4d5d164c2fdbc29a9957e3db38651705f (patch) | |
| tree | 956ce3a9974a6ebbdaa41d9332a18834b61d306c /examples/example-hook/Cargo.toml | |
| parent | 963c0937abbb985021ccb6319b8734f143c7603f (diff) | |
refactor(pickable): redesign Pickable trait with two-phase parse API
Introduce `get_attr`, `tag`, and `pick` as the new trait methods,
replacing
the single `tag` method that returned a `PickerTag`. This enables the
parser to first collect all argument position requirements and then
resolve
them in a second pass.
Rename `PickerTag` to `PickerArgInfo` and reorder `PickerFlagAttr`
variants
to reflect parse priority (`Positional < Flag < Single < Multi`). Add
`positional_or_else` helper to `PickerFlagAttr`.
Diffstat (limited to 'examples/example-hook/Cargo.toml')
0 files changed, 0 insertions, 0 deletions
