pub struct MatchHookContext {
pub hook_index: usize,
pub phase: MatchHookPhase,
pub target_kind: MatchHookTargetKind,
pub shape_label: String,
}Expand description
Context supplied to every hook invocation.
Fields§
§hook_index: usizePosition of the hook in the wrapper registration order.
phase: MatchHookPhaseCurrent execution phase.
target_kind: MatchHookTargetKindWhether the check is for a value or expression.
shape_label: StringDescription name for the wrapped shape.
Trait Implementations§
Source§impl Clone for MatchHookContext
impl Clone for MatchHookContext
Source§fn clone(&self) -> MatchHookContext
fn clone(&self) -> MatchHookContext
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 Debug for MatchHookContext
impl Debug for MatchHookContext
impl Eq for MatchHookContext
Source§impl PartialEq for MatchHookContext
impl PartialEq for MatchHookContext
Source§fn eq(&self, other: &MatchHookContext) -> bool
fn eq(&self, other: &MatchHookContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatchHookContext
Auto Trait Implementations§
impl Freeze for MatchHookContext
impl RefUnwindSafe for MatchHookContext
impl Send for MatchHookContext
impl Sync for MatchHookContext
impl Unpin for MatchHookContext
impl UnsafeUnpin for MatchHookContext
impl UnwindSafe for MatchHookContext
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