#[non_exhaustive]pub struct PathAndArgs {
pub path: PathBuf,
pub args: Vec<OsString>,
}Expand description
An executable path with arguments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBuf§args: Vec<OsString>Implementations§
Trait Implementations§
Source§impl Clone for PathAndArgs
impl Clone for PathAndArgs
Source§fn clone(&self) -> PathAndArgs
fn clone(&self) -> PathAndArgs
Returns a duplicate 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 Debug for PathAndArgs
impl Debug for PathAndArgs
Source§impl From<&PathAndArgs> for Command
impl From<&PathAndArgs> for Command
Source§fn from(value: &PathAndArgs) -> Self
fn from(value: &PathAndArgs) -> Self
Converts to this type from the input type.
Source§impl From<PathAndArgs> for Command
impl From<PathAndArgs> for Command
Source§fn from(value: PathAndArgs) -> Self
fn from(value: PathAndArgs) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathAndArgs
impl PartialEq for PathAndArgs
Source§impl Serialize for PathAndArgs
impl Serialize for PathAndArgs
impl Eq for PathAndArgs
impl StructuralPartialEq for PathAndArgs
Auto Trait Implementations§
impl Freeze for PathAndArgs
impl RefUnwindSafe for PathAndArgs
impl Send for PathAndArgs
impl Sync for PathAndArgs
impl Unpin for PathAndArgs
impl UnsafeUnpin for PathAndArgs
impl UnwindSafe for PathAndArgs
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