Skip to main content

Actions

Trait Actions 

Source
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§

Source

fn get(prompt: &str, starting_input: Option<&str>) -> Result<Self, MyErr>

Source

fn list() -> &'static [&'static str]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§