pub trait PromptWriter {
// Required methods
fn write(&mut self, text: &str);
fn flush(&mut self) -> Result<()>;
}Expand description
Abstraction over the output stream so prompts can capture their text.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".