1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::dispatch::Parser; // Not public API. #[doc(hidden)] pub struct Flag { pub doc: &'static [&'static str], pub short: Option<char>, pub name: &'static str, pub placeholder: Option<&'static str>, pub parser: &'static dyn Parser, } inventory::collect!(Flag);