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
patterns: Vec<W>
Pattern alternatives to match against.
body: Vec<C>
The body commands to execute if the pattern matches.
Trait Implementations
impl<W: Debug, C: Debug> Debug for PatternBodyPair<W, C>[src]
impl<W: PartialEq, C: PartialEq> PartialEq for PatternBodyPair<W, C>[src]
fn eq(&self, __arg_0: &PatternBodyPair<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: &PatternBodyPair<W, C>) -> bool
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]
fn clone(&self) -> PatternBodyPair<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