pub struct ParsedPipeline {
pub segments: Vec<ShellSegment>,
pub operators: Vec<Operator>,
}Expand description
A fully decomposed compound command: segments interleaved with operators.
For a simple command like ls -la, there is one segment and no operators.
For a && b | c, there are three segments and two operators (&&, |).
Fields§
§segments: Vec<ShellSegment>The command segments (one per simple command in the pipeline/list).
operators: Vec<Operator>Operators between consecutive segments (&&, ||, ;, |, |&).
Trait Implementations§
Source§impl Clone for ParsedPipeline
impl Clone for ParsedPipeline
Source§fn clone(&self) -> ParsedPipeline
fn clone(&self) -> ParsedPipeline
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 moreAuto Trait Implementations§
impl Freeze for ParsedPipeline
impl RefUnwindSafe for ParsedPipeline
impl Send for ParsedPipeline
impl Sync for ParsedPipeline
impl Unpin for ParsedPipeline
impl UnsafeUnpin for ParsedPipeline
impl UnwindSafe for ParsedPipeline
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