pub enum MatchHookKind {
Mark,
Accept,
Discard,
Annotate,
}Expand description
Capability class for a match hook decision.
Variants§
Mark
Observe and emit diagnostics without changing acceptance.
Accept
Optionally turn a rejected match into an accepted one.
Discard
Optionally turn an accepted match into a rejected one.
Annotate
Add annotations such as score deltas and diagnostics.
Trait Implementations§
Source§impl Clone for MatchHookKind
impl Clone for MatchHookKind
Source§fn clone(&self) -> MatchHookKind
fn clone(&self) -> MatchHookKind
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 moreimpl Copy for MatchHookKind
Source§impl Debug for MatchHookKind
impl Debug for MatchHookKind
impl Eq for MatchHookKind
Source§impl PartialEq for MatchHookKind
impl PartialEq for MatchHookKind
Source§fn eq(&self, other: &MatchHookKind) -> bool
fn eq(&self, other: &MatchHookKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatchHookKind
Auto Trait Implementations§
impl Freeze for MatchHookKind
impl RefUnwindSafe for MatchHookKind
impl Send for MatchHookKind
impl Sync for MatchHookKind
impl Unpin for MatchHookKind
impl UnsafeUnpin for MatchHookKind
impl UnwindSafe for MatchHookKind
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