pub struct PatternMatch { /* private fields */ }Expand description
The outcome of a successful match_value: which arm fired, its bindings,
and the match score.
Implementations§
Source§impl PatternMatch
impl PatternMatch
Sourcepub fn captures(&self) -> &ShapeBindings
pub fn captures(&self) -> &ShapeBindings
Returns the kernel ShapeBindings captured by the matching arm.
Sourcepub fn score(&self) -> MatchScore
pub fn score(&self) -> MatchScore
Returns the kernel MatchScore the matching arm earned.
Trait Implementations§
Source§impl Clone for PatternMatch
impl Clone for PatternMatch
Source§fn clone(&self) -> PatternMatch
fn clone(&self) -> PatternMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PatternMatch
impl !UnwindSafe for PatternMatch
impl Freeze for PatternMatch
impl Send for PatternMatch
impl Sync for PatternMatch
impl Unpin for PatternMatch
impl UnsafeUnpin for PatternMatch
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