pub enum PipeableCommand<N, S, C, F> {
Simple(S),
Compound(C),
FunctionDef(N, F),
}
Expand description
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§
Source§impl<N: Clone, S: Clone, C: Clone, F: Clone> Clone for PipeableCommand<N, S, C, F>
impl<N: Clone, S: Clone, C: Clone, F: Clone> Clone for PipeableCommand<N, S, C, F>
Source§fn clone(&self) -> PipeableCommand<N, S, C, F>
fn clone(&self) -> PipeableCommand<N, S, C, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<N: PartialEq, S: PartialEq, C: PartialEq, F: PartialEq> PartialEq for PipeableCommand<N, S, C, F>
impl<N: PartialEq, S: PartialEq, C: PartialEq, F: PartialEq> PartialEq for PipeableCommand<N, S, C, F>
impl<N: Eq, S: Eq, C: Eq, F: Eq> Eq for PipeableCommand<N, S, C, F>
impl<N, S, C, F> StructuralPartialEq for PipeableCommand<N, S, C, F>
Auto Trait Implementations§
impl<N, S, C, F> Freeze for PipeableCommand<N, S, C, F>
impl<N, S, C, F> RefUnwindSafe for PipeableCommand<N, S, C, F>
impl<N, S, C, F> Send for PipeableCommand<N, S, C, F>
impl<N, S, C, F> Sync for PipeableCommand<N, S, C, F>
impl<N, S, C, F> Unpin for PipeableCommand<N, S, C, F>
impl<N, S, C, F> UnwindSafe for PipeableCommand<N, S, C, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more