Struct conch_parser::ast::builder::CaseArm
[−]
[src]
pub struct CaseArm<W, C> {
pub patterns: CasePatternFragments<W>,
pub body: CommandGroup<C>,
pub arm_comment: Option<Newline>,
}An individual "unit of execution" within a case command.
Each arm has a number of pattern alternatives, and a body of commands to run if any pattern matches.
Fields
patterns: CasePatternFragments<W>
The patterns which correspond to this case arm.
body: CommandGroup<C>
The body of commands to run if any pattern matches.
arm_comment: Option<Newline>
A comment appearing at the end of the arm declaration,
i.e. after ;; but on the same line.
Trait Implementations
impl<W: Debug, C: Debug> Debug for CaseArm<W, C>[src]
impl<W: PartialEq, C: PartialEq> PartialEq for CaseArm<W, C>[src]
fn eq(&self, __arg_0: &CaseArm<W, C>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CaseArm<W, C>) -> bool
This method tests for !=.
impl<W: Eq, C: Eq> Eq for CaseArm<W, C>[src]
impl<W: Clone, C: Clone> Clone for CaseArm<W, C>[src]
fn clone(&self) -> CaseArm<W, C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more