pub trait StateOpt {
type S: State;
// Required methods
fn name(&self) -> &str;
fn state(&self) -> &Self::S;
// Provided methods
fn consume(&self) -> bool { ... }
fn match<'a>(&self, arg: &'a str) -> Match<'a> { ... }
}
Expand description
Trait defining the behavior of a command-line option