Enum conch_runtime::eval::RedirectOrCmdWord[][src]

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

Represents a redirect or a command word.

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 shell word, either command name or argument.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

impl<R, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>
[src]

Performs the conversion.

Auto Trait Implementations

impl<R, W> Send for RedirectOrCmdWord<R, W> where
    R: Send,
    W: Send

impl<R, W> Sync for RedirectOrCmdWord<R, W> where
    R: Sync,
    W: Sync