Enum conch_parser::ast::RedirectOrCmdWord [] [src]

pub enum RedirectOrCmdWord<R, W> {
    Redirect(R),
    CmdWord(W),
}

Represents a parsed redirect or a defined command or command argument.

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 after a command was encountered.

A parsed command name or argument.

Trait Implementations

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

Formats the value using the given formatter.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more