pub trait ShortFlags: Flags + Copy {
const SHORT_FLAGS: &'static [char];
// Provided methods
fn from_char(c: char) -> Option<Self> { ... }
fn from_str(s: &str) -> Self { ... }
fn apply_modification(&mut self, modification: &str) { ... }
fn summary(&self) -> String { ... }
}Expand description
Trait for Flags to provide short flag functionality.
Required Associated Constants§
Sourceconst SHORT_FLAGS: &'static [char]
const SHORT_FLAGS: &'static [char]
The set of defined short flags. Must be of the same length as Flags::FLAGS.
Provided Methods§
Sourcefn apply_modification(&mut self, modification: &str)
fn apply_modification(&mut self, modification: &str)
Applies the given modification string.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".