pub trait Person {
// Required methods
fn tell(&mut self, text: &str);
fn answer(&mut self, ask: &Ask) -> Option<String>;
fn approve(&mut self, ask: &Ask) -> Option<Verdict>;
// Provided methods
fn decide(&mut self, question: &str) -> Option<bool> { ... }
fn choose(&mut self, question: &str, options: &[String]) -> Option<usize> { ... }
}Expand description
The person the plan is for, and the people its steps name.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".