Struct conch_parser::ast::PatternBodyPair [] [src]

pub struct PatternBodyPair<W, C> {
    pub patterns: Vec<W>,
    pub body: Vec<C>,
}

A grouping of patterns and body commands.

Fields

Pattern alternatives to match against.

The body commands to execute if the pattern matches.

Trait Implementations

impl<W: Debug, C: Debug> Debug for PatternBodyPair<W, C>
[src]

Formats the value using the given formatter.

impl<W: PartialEq, C: PartialEq> PartialEq for PatternBodyPair<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 PatternBodyPair<W, C>
[src]

impl<W: Clone, C: Clone> Clone for PatternBodyPair<W, C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more