pub struct PatternBodyPair<W, C> {
pub patterns: Vec<W>,
pub body: Vec<C>,
}
Expand description
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§
Source§impl<W: Clone, C: Clone> Clone for PatternBodyPair<W, C>
impl<W: Clone, C: Clone> Clone for PatternBodyPair<W, C>
Source§fn clone(&self) -> PatternBodyPair<W, C>
fn clone(&self) -> PatternBodyPair<W, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<W: Eq, C: Eq> Eq for PatternBodyPair<W, C>
impl<W, C> StructuralPartialEq for PatternBodyPair<W, C>
Auto Trait Implementations§
impl<W, C> Freeze for PatternBodyPair<W, C>
impl<W, C> RefUnwindSafe for PatternBodyPair<W, C>where
W: RefUnwindSafe,
C: RefUnwindSafe,
impl<W, C> Send for PatternBodyPair<W, C>
impl<W, C> Sync for PatternBodyPair<W, C>
impl<W, C> Unpin for PatternBodyPair<W, C>
impl<W, C> UnwindSafe for PatternBodyPair<W, C>where
W: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more