Trait gosh_repl::Actionable
source · 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>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(iter: I) -> Result<Self::Command>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
parse Command from shell line input.