Trait Prompt

Source
pub trait Prompt {
    // Required methods
    fn prompt(&self) -> String;
    fn complete(
        &self,
        command: &str,
        args: &[&str],
        incomplete: &str,
    ) -> Vec<String>;
}

Required Methods§

Source

fn prompt(&self) -> String

Source

fn complete( &self, command: &str, args: &[&str], incomplete: &str, ) -> Vec<String>

Implementations on Foreign Types§

Source§

impl Prompt for ()

Source§

fn prompt(&self) -> String

Source§

fn complete( &self, _command: &str, _args: &[&str], _incomplete: &str, ) -> Vec<String>

Implementors§