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
Redirect(R)A redirect defined before a command name.
CmdWord(W)A shell word, either 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[src]
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[src]
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>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<R, W> From<RedirectOrCmdWord<R, W>> for RedirectOrCmdWord<R, W>[src]
fn from(from: RedirectOrCmdWord<R, W>) -> Self[src]
Performs the conversion.