Struct conch_parser::ast::SimpleCommand
[−]
[src]
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>>,
}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
impl<V: Debug, W: Debug, R: Debug> Debug for SimpleCommand<V, W, R>[src]
impl<V: PartialEq, W: PartialEq, R: PartialEq> PartialEq for SimpleCommand<V, W, R>[src]
fn eq(&self, __arg_0: &SimpleCommand<V, W, R>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SimpleCommand<V, W, R>) -> bool
This method tests for !=.
impl<V: Eq, W: Eq, R: Eq> Eq for SimpleCommand<V, W, R>[src]
impl<V: Clone, W: Clone, R: Clone> Clone for SimpleCommand<V, W, R>[src]
fn clone(&self) -> SimpleCommand<V, W, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more