Struct conch_runtime::spawn::PatternBodyPair
[−]
[src]
pub struct PatternBodyPair<W, C> { pub patterns: W, pub body: C, }
A grouping of patterns and body commands.
Fields
patterns: W
Pattern alternatives to match against.
body: 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
[src]
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
[src]
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>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<W, C> From<PatternBodyPair<W, C>> for PatternBodyPair<Vec<W>, Vec<C>>
[src]
fn from(ast: PatternBodyPair<W, C>) -> Self
[src]
Performs the conversion.