pub struct TraceMarkHook;Expand description
Mark hook that emits the wrapped shape label before and after matching.
Trait Implementations§
Source§impl Clone for TraceMarkHook
impl Clone for TraceMarkHook
Source§fn clone(&self) -> TraceMarkHook
fn clone(&self) -> TraceMarkHook
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 TraceMarkHook
impl Default for TraceMarkHook
Source§fn default() -> TraceMarkHook
fn default() -> TraceMarkHook
Returns the “default value” for a type. Read more
Source§impl MatchHook for TraceMarkHook
impl MatchHook for TraceMarkHook
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 TraceMarkHook
impl RefUnwindSafe for TraceMarkHook
impl Send for TraceMarkHook
impl Sync for TraceMarkHook
impl Unpin for TraceMarkHook
impl UnsafeUnpin for TraceMarkHook
impl UnwindSafe for TraceMarkHook
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