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
Redirect(R)A parsed redirect after a command was encountered.
CmdWord(W)A parsed command name or argument.
Trait Implementations
impl<R: Debug, W: Debug> Debug for RedirectOrCmdWord<R, W>[src]
impl<R: PartialEq, W: PartialEq> PartialEq for RedirectOrCmdWord<R, W>[src]
fn eq(&self, __arg_0: &RedirectOrCmdWord<R, W>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RedirectOrCmdWord<R, W>) -> bool
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]
fn clone(&self) -> RedirectOrCmdWord<R, W>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more