pub trait Actions: Sized + Clone {
// Required methods
fn get(prompt: &str, starting_input: Option<&str>) -> Result<Self, MyErr>;
fn list() -> &'static [&'static str];
fn parse(s: &str) -> Option<Self>;
}Required Methods§
fn get(prompt: &str, starting_input: Option<&str>) -> Result<Self, MyErr>
fn list() -> &'static [&'static str]
fn parse(s: &str) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".