pub trait ToCommand {
// Required method
fn to_command(&self) -> Vec<String>;
// Provided method
fn to_single_command(&self) -> String { ... }
}Required Methods§
fn to_command(&self) -> Vec<String>
Provided Methods§
fn to_single_command(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".