pub struct Command(/* private fields */);
Expand description
Process command line.
Implementations§
Source§impl Command
impl Command
Sourcepub fn to_os_string(&self) -> OsString
pub fn to_os_string(&self) -> OsString
Create an OsString
containing the process command line.
Spaces are used as a delimiters in the returned OsString
.
§Notes
This method will always allocate memory on all OSes.
Sourcepub fn into_os_string(self) -> OsString
pub fn into_os_string(self) -> OsString
Consumes self
and returns the underline process command line.
Spaces are used as a delimiters in the returned OsString
.
§Notes
This method might allocate on some OSes, depending on the implementation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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