pub struct DiscardOnDiagnosticPrefixHook { /* private fields */ }Expand description
Discard hook that rejects accepted matches containing a diagnostic prefix.
Implementations§
Trait Implementations§
Source§impl MatchHook for DiscardOnDiagnosticPrefixHook
impl MatchHook for DiscardOnDiagnosticPrefixHook
Source§fn kind(&self) -> MatchHookKind
fn kind(&self) -> MatchHookKind
Decision class this hook may produce.
Source§fn object_encoding(&self) -> Option<ObjectEncoding>
fn object_encoding(&self) -> Option<ObjectEncoding>
Constructor encoding for pure, descriptor-backed built-in hooks.
Source§fn apply(
&self,
_cx: &mut Cx,
_ctx: &MatchHookContext,
current: Option<&ShapeMatch>,
) -> Result<MatchHookDecision>
fn apply( &self, _cx: &mut Cx, _ctx: &MatchHookContext, current: Option<&ShapeMatch>, ) -> Result<MatchHookDecision>
Run the hook for the supplied context and current match state.
Auto Trait Implementations§
impl Freeze for DiscardOnDiagnosticPrefixHook
impl RefUnwindSafe for DiscardOnDiagnosticPrefixHook
impl Send for DiscardOnDiagnosticPrefixHook
impl Sync for DiscardOnDiagnosticPrefixHook
impl Unpin for DiscardOnDiagnosticPrefixHook
impl UnsafeUnpin for DiscardOnDiagnosticPrefixHook
impl UnwindSafe for DiscardOnDiagnosticPrefixHook
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