1pub trait ToCommand { 2 fn to_command(&self) -> Vec<String>; 3 4 fn to_single_command(&self) -> String { 5 self.to_command().join(" ") 6 } 7} 8 9pub trait ToArg { 10 fn to_arg(&self) -> &str; 11}