pub struct ForCommand {
pub var_name: SmolStr,
pub words: Option<Vec<Word>>,
pub body: Vec<CompleteCommand>,
pub span: Span,
}Expand description
A for name in words; do body; done command.
Fields§
§var_name: SmolStrThe loop variable name.
words: Option<Vec<Word>>None means iterate over "$@" (no in clause).
body: Vec<CompleteCommand>The loop body.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for ForCommand
impl Clone for ForCommand
Source§fn clone(&self) -> ForCommand
fn clone(&self) -> ForCommand
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 ForCommand
impl Debug for ForCommand
Source§impl PartialEq for ForCommand
impl PartialEq for ForCommand
Source§fn eq(&self, other: &ForCommand) -> bool
fn eq(&self, other: &ForCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForCommand
Auto Trait Implementations§
impl Freeze for ForCommand
impl RefUnwindSafe for ForCommand
impl Send for ForCommand
impl Sync for ForCommand
impl Unpin for ForCommand
impl UnsafeUnpin for ForCommand
impl UnwindSafe for ForCommand
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