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