pub struct SimpleCommand<V, W, R> {
pub redirects_or_env_vars: Vec<RedirectOrEnvVar<R, V, W>>,
pub redirects_or_cmd_words: Vec<RedirectOrCmdWord<R, W>>,
}
Expand description
The simplest possible command: an executable with arguments, environment variable assignments, and redirections.
Generic over representations of variable names, shell words, and redirects.
Fields§
§redirects_or_env_vars: Vec<RedirectOrEnvVar<R, V, W>>
Redirections or environment variables that occur before any command in the order they were parsed.
redirects_or_cmd_words: Vec<RedirectOrCmdWord<R, W>>
Redirections or command name/argumetns in the order they were parsed.
Trait Implementations§
Source§impl<V: Clone, W: Clone, R: Clone> Clone for SimpleCommand<V, W, R>
impl<V: Clone, W: Clone, R: Clone> Clone for SimpleCommand<V, W, R>
Source§fn clone(&self) -> SimpleCommand<V, W, R>
fn clone(&self) -> SimpleCommand<V, W, R>
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 moreimpl<V: Eq, W: Eq, R: Eq> Eq for SimpleCommand<V, W, R>
impl<V, W, R> StructuralPartialEq for SimpleCommand<V, W, R>
Auto Trait Implementations§
impl<V, W, R> Freeze for SimpleCommand<V, W, R>
impl<V, W, R> RefUnwindSafe for SimpleCommand<V, W, R>
impl<V, W, R> Send for SimpleCommand<V, W, R>
impl<V, W, R> Sync for SimpleCommand<V, W, R>
impl<V, W, R> Unpin for SimpleCommand<V, W, R>
impl<V, W, R> UnwindSafe for SimpleCommand<V, W, R>
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