Enum conch_parser::ast::PipeableCommand
[−]
[src]
pub enum PipeableCommand<N, S, C, F> {
Simple(S),
Compound(C),
FunctionDef(N, F),
}Commands that can be used within a pipeline.
Generic over the representations of function names, simple commands, compound commands, and function bodies.
Variants
Simple(S)The simplest possible command: an executable with arguments, environment variable assignments, and redirections.
Compound(C)A class of commands where redirection is applied to a command group.
FunctionDef(N, F)A function definition, associating a name with a group of commands,
e.g. function foo() { echo foo function; }.
Trait Implementations
impl<N: Debug, S: Debug, C: Debug, F: Debug> Debug for PipeableCommand<N, S, C, F>[src]
impl<N: PartialEq, S: PartialEq, C: PartialEq, F: PartialEq> PartialEq for PipeableCommand<N, S, C, F>[src]
fn eq(&self, __arg_0: &PipeableCommand<N, S, C, F>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &PipeableCommand<N, S, C, F>) -> bool
This method tests for !=.
impl<N: Eq, S: Eq, C: Eq, F: Eq> Eq for PipeableCommand<N, S, C, F>[src]
impl<N: Clone, S: Clone, C: Clone, F: Clone> Clone for PipeableCommand<N, S, C, F>[src]
fn clone(&self) -> PipeableCommand<N, S, C, F>
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