pub struct ScoreFloorHook { /* private fields */ }Expand description
Annotate hook that raises accepted match scores to a minimum floor.
Implementations§
Trait Implementations§
Source§impl Clone for ScoreFloorHook
impl Clone for ScoreFloorHook
Source§fn clone(&self) -> ScoreFloorHook
fn clone(&self) -> ScoreFloorHook
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 MatchHook for ScoreFloorHook
impl MatchHook for ScoreFloorHook
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 ScoreFloorHook
impl RefUnwindSafe for ScoreFloorHook
impl Send for ScoreFloorHook
impl Sync for ScoreFloorHook
impl Unpin for ScoreFloorHook
impl UnsafeUnpin for ScoreFloorHook
impl UnwindSafe for ScoreFloorHook
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