pub trait CommandLogExt {
// Required methods
fn spawn_with_log(&mut self) -> Result<Child>;
fn output_with_log(&mut self) -> Result<Output>;
// Provided method
fn status_with_log(&mut self) -> Result<ExitStatus> { ... }
}
pub trait CommandLogExt {
// Required methods
fn spawn_with_log(&mut self) -> Result<Child>;
fn output_with_log(&mut self) -> Result<Output>;
// Provided method
fn status_with_log(&mut self) -> Result<ExitStatus> { ... }
}