pub enum MatchOutcome {
Matched {
index: usize,
bindings: ShapeBindings,
},
NoMatch,
}Expand description
Result of ordered structural matching.
Variants§
Matched
First pattern whose guard accepted, including its isolated bindings.
Fields
§
bindings: ShapeBindingsCaptures produced only by the accepted case.
NoMatch
No faithfully supported case accepted.
Auto Trait Implementations§
impl !RefUnwindSafe for MatchOutcome
impl !UnwindSafe for MatchOutcome
impl Freeze for MatchOutcome
impl Send for MatchOutcome
impl Sync for MatchOutcome
impl Unpin for MatchOutcome
impl UnsafeUnpin for MatchOutcome
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