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

The patterns which correspond to this case arm.

The body of commands to run if any pattern matches.

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]

Formats the value using the given formatter.

impl<W: PartialEq, C: PartialEq> PartialEq for CaseArm<W, C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more