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

A parsed redirect before a command was encountered.

A parsed environment variable, e.g. foo=[bar].

Trait Implementations

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

Formats the value using the given formatter.

impl<R: PartialEq, V: PartialEq, W: PartialEq> PartialEq for RedirectOrEnvVar<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 RedirectOrEnvVar<R, V, W>
[src]

impl<R: Clone, V: Clone, W: Clone> Clone for RedirectOrEnvVar<R, V, W>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more