pub enum MatchHookDecision {
Pass,
Mark {
message: String,
},
Accept {
reason: String,
score: MatchScore,
},
Discard {
reason: String,
},
Annotate {
message: String,
score_delta: i32,
},
}Expand description
Hook result interpreted by HookedShape.
Variants§
Pass
Do nothing.
Mark
Emit a mark diagnostic.
Accept
Accept a currently rejected match.
Fields
§
score: MatchScoreScore assigned when the inner match left a reject score.
Discard
Reject a currently accepted match.
Annotate
Add a diagnostic and score delta.
Trait Implementations§
Source§impl Clone for MatchHookDecision
impl Clone for MatchHookDecision
Source§fn clone(&self) -> MatchHookDecision
fn clone(&self) -> MatchHookDecision
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 moreSource§impl Debug for MatchHookDecision
impl Debug for MatchHookDecision
impl Eq for MatchHookDecision
Source§impl PartialEq for MatchHookDecision
impl PartialEq for MatchHookDecision
Source§fn eq(&self, other: &MatchHookDecision) -> bool
fn eq(&self, other: &MatchHookDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatchHookDecision
Auto Trait Implementations§
impl Freeze for MatchHookDecision
impl RefUnwindSafe for MatchHookDecision
impl Send for MatchHookDecision
impl Sync for MatchHookDecision
impl Unpin for MatchHookDecision
impl UnsafeUnpin for MatchHookDecision
impl UnwindSafe for MatchHookDecision
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