pub enum Arg {
Str(OsString),
Command(Run),
Var(OsString),
Compound(Vec<Arg>),
}
Expand description
Arg to a command, either a direct string or a sub command to run to get the arg.
Variants§
Str(OsString)
Single string arg.
Command(Run)
A command to run to get the string arg.
Var(OsString)
Env variable to use to set the arg.
Compound(Vec<Arg>)
List of args that will be concatenated to make the arg.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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