pub struct AcceptOnNoDiagnosticsHook;Expand description
Accept hook that repairs quiet rejections with score 1.
Trait Implementations§
Source§impl Clone for AcceptOnNoDiagnosticsHook
impl Clone for AcceptOnNoDiagnosticsHook
Source§fn clone(&self) -> AcceptOnNoDiagnosticsHook
fn clone(&self) -> AcceptOnNoDiagnosticsHook
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 Default for AcceptOnNoDiagnosticsHook
impl Default for AcceptOnNoDiagnosticsHook
Source§fn default() -> AcceptOnNoDiagnosticsHook
fn default() -> AcceptOnNoDiagnosticsHook
Returns the “default value” for a type. Read more
Source§impl MatchHook for AcceptOnNoDiagnosticsHook
impl MatchHook for AcceptOnNoDiagnosticsHook
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 AcceptOnNoDiagnosticsHook
impl RefUnwindSafe for AcceptOnNoDiagnosticsHook
impl Send for AcceptOnNoDiagnosticsHook
impl Sync for AcceptOnNoDiagnosticsHook
impl Unpin for AcceptOnNoDiagnosticsHook
impl UnsafeUnpin for AcceptOnNoDiagnosticsHook
impl UnwindSafe for AcceptOnNoDiagnosticsHook
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