ShellPrintable

Trait ShellPrintable 

Source
pub trait ShellPrintable {
    // Required methods
    fn printable_invocation_string(&mut self) -> Result<String, Utf8Error>;
    fn printable_invocation_string_lossy(&mut self) -> String;

    // Provided methods
    fn print_invocation(&mut self) -> Result<&mut Self, Utf8Error> { ... }
    fn print_invocation_lossy(&mut self) -> &mut Self { ... }
}

Required Methods§

Provided Methods§

Source

fn print_invocation(&mut self) -> Result<&mut Self, Utf8Error>

Examples found in repository?
examples/echo.rs (line 6)
5fn main() {
6    let _ = Command::new("echo").args(["#hi"]).print_invocation();
7}
Source

fn print_invocation_lossy(&mut self) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ShellPrintable for Command

Implementors§