pub enum SubDef {
Policy {
name: &'static str,
policy: &'static FlagPolicy,
},
Nested {
name: &'static str,
subs: &'static [SubDef],
},
Guarded {
name: &'static str,
guard_short: Option<&'static str>,
guard_long: &'static str,
policy: &'static FlagPolicy,
},
Custom {
name: &'static str,
check: CheckFn,
doc: &'static str,
test_suffix: Option<&'static str>,
},
Delegation {
name: &'static str,
skip: usize,
doc: &'static str,
},
}Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for SubDef
impl RefUnwindSafe for SubDef
impl Send for SubDef
impl Sync for SubDef
impl Unpin for SubDef
impl UnsafeUnpin for SubDef
impl UnwindSafe for SubDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more