Enum conch_parser::ast::RedirectOrEnvVar
[−]
[src]
pub enum RedirectOrEnvVar<R, V, W> {
Redirect(R),
EnvVar(V, Option<W>),
}Represents a parsed redirect or a defined environment variable at the start of a command.
Because the order in which redirects are defined may be significant for execution, the parser will preserve the order in which they were parsed. Thus we need a wrapper like this to disambiguate what was encountered in the source program.
Variants
Redirect(R)A parsed redirect before a command was encountered.
EnvVar(V, Option<W>)A parsed environment variable, e.g. foo=[bar].
Trait Implementations
impl<R: Debug, V: Debug, W: Debug> Debug for RedirectOrEnvVar<R, V, W>[src]
impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrEnvVar<R, V, W>[src]
fn eq(&self, __arg_0: &RedirectOrEnvVar<R, V, W>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RedirectOrEnvVar<R, V, W>) -> bool
This method tests for !=.
impl<R: Eq, V: Eq, W: Eq> Eq for RedirectOrEnvVar<R, V, W>[src]
impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrEnvVar<R, V, W>[src]
fn clone(&self) -> RedirectOrEnvVar<R, V, W>
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