pub trait Actionable {
type Command: Parser;
// Required method
fn act_on(&mut self, cmd: &Self::Command) -> Result<bool>;
// Provided method
fn try_parse_from<I, T>(iter: I) -> Result<Self::Command>
where I: IntoIterator<Item = T>,
T: Into<OsString> + Clone { ... }
}Expand description
Defines actions for REPL commands
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn try_parse_from<I, T>(iter: I) -> Result<Self::Command>
fn try_parse_from<I, T>(iter: I) -> Result<Self::Command>
parse Command from shell line input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.