pub struct ArithForCommand {
pub init: SmolStr,
pub cond: SmolStr,
pub step: SmolStr,
pub body: Vec<CompleteCommand>,
pub span: Span,
}Expand description
A C-style for (( init; cond; step )) do body done command.
Fields§
§init: SmolStrThe initializer expression.
cond: SmolStrThe loop condition expression.
step: SmolStrThe step expression evaluated after each iteration.
body: Vec<CompleteCommand>The loop body.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for ArithForCommand
impl Clone for ArithForCommand
Source§fn clone(&self) -> ArithForCommand
fn clone(&self) -> ArithForCommand
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 ArithForCommand
impl Debug for ArithForCommand
Source§impl PartialEq for ArithForCommand
impl PartialEq for ArithForCommand
Source§fn eq(&self, other: &ArithForCommand) -> bool
fn eq(&self, other: &ArithForCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArithForCommand
Auto Trait Implementations§
impl Freeze for ArithForCommand
impl RefUnwindSafe for ArithForCommand
impl Send for ArithForCommand
impl Sync for ArithForCommand
impl Unpin for ArithForCommand
impl UnsafeUnpin for ArithForCommand
impl UnwindSafe for ArithForCommand
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