Enum conch_runtime::eval::RedirectOrVarAssig
[−]
[src]
pub enum RedirectOrVarAssig<R, V, W> {
Redirect(R),
VarAssig(V, Option<W>),
}Represents a 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 (i.e. due to side effects), we will process them in the order they were defined.
Variants
Redirect(R)A redirect defined before a command name.
VarAssig(V, Option<W>)A variable assignment, e.g. foo=[bar].
Trait Implementations
impl<R: Debug, V: Debug, W: Debug> Debug for RedirectOrVarAssig<R, V, W>[src]
impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrVarAssig<R, V, W>[src]
fn eq(&self, __arg_0: &RedirectOrVarAssig<R, V, W>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RedirectOrVarAssig<R, V, W>) -> bool[src]
This method tests for !=.
impl<R: Eq, V: Eq, W: Eq> Eq for RedirectOrVarAssig<R, V, W>[src]
impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrVarAssig<R, V, W>[src]
fn clone(&self) -> RedirectOrVarAssig<R, V, W>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<R, V, W> From<RedirectOrEnvVar<R, V, W>> for RedirectOrVarAssig<R, V, W>[src]
fn from(from: RedirectOrEnvVar<R, V, W>) -> Self[src]
Performs the conversion.