pub trait Prompt {
// Required methods
fn prompt(&self) -> String;
fn complete(
&self,
command: &str,
args: &[&str],
incomplete: &str,
) -> Vec<String>;
}Required Methods§
fn prompt(&self) -> String
fn complete( &self, command: &str, args: &[&str], incomplete: &str, ) -> Vec<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".