Struct command_error::Utf8ProgramAndArgs
source · pub struct Utf8ProgramAndArgs { /* private fields */ }
Expand description
A program name and arguments stored as UTF-8 String
s.
The program name and arguments are shell-quoted when Display
ed, so that spaces are escaped
and the displayed command can generally be pasted directly into a shell.
let mut command = Command::new("echo");
command.arg("puppy doggy");
let displayed: Utf8ProgramAndArgs = (&command).into();
assert_eq!(
displayed.to_string(),
"echo 'puppy doggy'"
);
Trait Implementations§
source§impl Clone for Utf8ProgramAndArgs
impl Clone for Utf8ProgramAndArgs
source§fn clone(&self) -> Utf8ProgramAndArgs
fn clone(&self) -> Utf8ProgramAndArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandDisplay for Utf8ProgramAndArgs
impl CommandDisplay for Utf8ProgramAndArgs
source§impl Debug for Utf8ProgramAndArgs
impl Debug for Utf8ProgramAndArgs
source§impl Display for Utf8ProgramAndArgs
impl Display for Utf8ProgramAndArgs
Auto Trait Implementations§
impl Freeze for Utf8ProgramAndArgs
impl RefUnwindSafe for Utf8ProgramAndArgs
impl Send for Utf8ProgramAndArgs
impl Sync for Utf8ProgramAndArgs
impl Unpin for Utf8ProgramAndArgs
impl UnwindSafe for Utf8ProgramAndArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more