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

A redirect defined before a command name.

A variable assignment, e.g. foo=[bar].

Trait Implementations

impl<R: Debug, V: Debug, W: Debug> Debug for RedirectOrVarAssig<R, V, W>
[src]

Formats the value using the given formatter. Read more

impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrVarAssig<R, V, W>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R, V, W> From<RedirectOrEnvVar<R, V, W>> for RedirectOrVarAssig<R, V, W>
[src]

Performs 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> Sync for RedirectOrVarAssig<R, V, W> where
    R: Sync,
    V: Sync,
    W: Sync