pub trait Flag { fn into_flag(&mut self, s: &str); fn as_any(&mut self) -> &mut dyn Any; }
The trait that needs to be implemented in order to be a flag anything that implements FromStr and has a static lifetime implements this trait.