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