diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-14 02:24:11 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-14 02:27:36 +0800 |
| commit | 3f90ae7c987b16d485a2fb4e9f9bcb3774d37530 (patch) | |
| tree | 31c8d165c2a0aa6d1c898a061931b2ea73393c52 /mingling_picker/src/requirement.rs | |
| parent | de370df01a171b4fd910dfa9a067830acd1f9a3c (diff) | |
refactor: rename PickerArguments to PickerArgs and PickerRequirement to
PickerFlag
Diffstat (limited to 'mingling_picker/src/requirement.rs')
| -rw-r--r-- | mingling_picker/src/requirement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_picker/src/requirement.rs b/mingling_picker/src/requirement.rs index 564ae45..0b351f8 100644 --- a/mingling_picker/src/requirement.rs +++ b/mingling_picker/src/requirement.rs @@ -22,7 +22,7 @@ use std::marker::PhantomData; /// /// - `_type`: PhantomData to hold the type parameter. #[derive(Default, Clone, Copy)] -pub struct PickerRequirement<'a, Type> +pub struct PickerFlag<'a, Type> where Type: Default + Pickable, { @@ -39,11 +39,11 @@ where pub internal_type: PhantomData<Type>, } -impl<'a, Type> PickerRequirement<'a, Type> +impl<'a, Type> PickerFlag<'a, Type> where Type: Default + Pickable, { - /// Creates a new `PickerRequirement` with the provided parameters. + /// Creates a new `PickerFlag` with the provided parameters. pub fn new(full: &'a [&'a str], short: Option<char>, positional: bool) -> Self { Self { full, |
