pub struct SelectCommand {
pub var_name: SmolStr,
pub words: Option<Vec<Word>>,
pub body: Vec<CompleteCommand>,
pub redirections: Vec<Redirection>,
pub span: Span,
}Expand description
A select name [in word ...]; 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.
redirections: Vec<Redirection>Trailing redirections (e.g., done <<< "input").
span: SpanSource span.
Trait Implementations§
Source§impl Clone for SelectCommand
impl Clone for SelectCommand
Source§fn clone(&self) -> SelectCommand
fn clone(&self) -> SelectCommand
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 SelectCommand
impl Debug for SelectCommand
Source§impl PartialEq for SelectCommand
impl PartialEq for SelectCommand
Source§fn eq(&self, other: &SelectCommand) -> bool
fn eq(&self, other: &SelectCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectCommand
Auto Trait Implementations§
impl Freeze for SelectCommand
impl RefUnwindSafe for SelectCommand
impl Send for SelectCommand
impl Sync for SelectCommand
impl Unpin for SelectCommand
impl UnsafeUnpin for SelectCommand
impl UnwindSafe for SelectCommand
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