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: Debug, V: Debug, W: Debug> Debug for RedirectOrVarAssig<R, V, W>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrVarAssig<R, V, W>[src]
impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrVarAssig<R, V, W>fn eq(&self, other: &RedirectOrVarAssig<R, V, W>) -> bool[src]
fn eq(&self, other: &RedirectOrVarAssig<R, V, W>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RedirectOrVarAssig<R, V, W>) -> bool[src]
fn ne(&self, other: &RedirectOrVarAssig<R, V, W>) -> boolThis method tests for !=.
impl<R: Eq, V: Eq, W: Eq> Eq for RedirectOrVarAssig<R, V, W>[src]
impl<R: Eq, V: Eq, W: Eq> Eq for RedirectOrVarAssig<R, V, W>impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrVarAssig<R, V, W>[src]
impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrVarAssig<R, V, W>fn clone(&self) -> RedirectOrVarAssig<R, V, W>[src]
fn clone(&self) -> RedirectOrVarAssig<R, V, W>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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]
impl<R, V, W> From<RedirectOrEnvVar<R, V, W>> for RedirectOrVarAssig<R, V, W>fn from(from: RedirectOrEnvVar<R, V, W>) -> Self[src]
fn from(from: RedirectOrEnvVar<R, V, W>) -> SelfPerforms the conversion.
Auto Trait Implementations
impl<R, V, W> Send for RedirectOrVarAssig<R, V, W> where
R: Send,
V: Send,
W: Send,
impl<R, V, W> Send for RedirectOrVarAssig<R, V, W> where
R: Send,
V: Send,
W: Send, impl<R, V, W> Sync for RedirectOrVarAssig<R, V, W> where
R: Sync,
V: Sync,
W: Sync,
impl<R, V, W> Sync for RedirectOrVarAssig<R, V, W> where
R: Sync,
V: Sync,
W: Sync,