pub struct SimpleCommand {
pub assignments: Vec<Assignment>,
pub words: Vec<Word>,
pub redirections: Vec<Redirection>,
pub span: Span,
}Expand description
A simple command: optional assignments, words (argv), and redirections.
Fields§
§assignments: Vec<Assignment>Variable assignments prefixed before the command (e.g., FOO=1).
words: Vec<Word>The command name and arguments.
redirections: Vec<Redirection>Redirections attached to this command.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for SimpleCommand
impl Clone for SimpleCommand
Source§fn clone(&self) -> SimpleCommand
fn clone(&self) -> SimpleCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleCommand
impl Debug for SimpleCommand
Source§impl PartialEq for SimpleCommand
impl PartialEq for SimpleCommand
Source§fn eq(&self, other: &SimpleCommand) -> bool
fn eq(&self, other: &SimpleCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SimpleCommand
Auto Trait Implementations§
impl Freeze for SimpleCommand
impl RefUnwindSafe for SimpleCommand
impl Send for SimpleCommand
impl Sync for SimpleCommand
impl Unpin for SimpleCommand
impl UnsafeUnpin for SimpleCommand
impl UnwindSafe for SimpleCommand
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