pub trait ShellPrintable {
// Required methods
fn printable_invocation_string(&self) -> Result<String, Utf8Error>;
fn printable_invocation_string_lossy(&self) -> String;
// Provided methods
fn print_invocation(&mut self) -> Result<&mut Self, Utf8Error> { ... }
fn print_invocation_lossy(&mut self) -> &mut Self { ... }
}Required Methods§
fn printable_invocation_string(&self) -> Result<String, Utf8Error>
fn printable_invocation_string_lossy(&self) -> String
Provided Methods§
Sourcefn print_invocation(&mut self) -> Result<&mut Self, Utf8Error>
fn print_invocation(&mut self) -> Result<&mut Self, Utf8Error>
Examples found in repository?
More examples
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.