pub struct SimpleCommand {
pub name: Word,
pub args: Vec<Word>,
pub redirects: Vec<Redirect>,
pub assignments: Vec<Assignment>,
pub span: Span,
}Expand description
A simple command with arguments and redirections.
Fields§
§name: WordCommand name
args: Vec<Word>Command arguments
redirects: Vec<Redirect>Redirections
assignments: Vec<Assignment>Variable assignments before the command
span: SpanSource span of this command
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 · 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 SimpleCommand
impl RefUnwindSafe for SimpleCommand
impl Send for SimpleCommand
impl Sync for SimpleCommand
impl Unpin 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