pub struct HookId(/* private fields */);Expand description
Opaque identifier of an externally implemented hook.
The IR deliberately cannot express arbitrary target code; a hook node defers one predicate or action to the evaluation context, which maps the id to grammar-specific behavior (a user trait method, or a runtime shim such as the conformance suite’s evaluation-reporting predicates).
Implementations§
Trait Implementations§
impl Copy for HookId
impl Eq for HookId
Source§impl Ord for HookId
impl Ord for HookId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HookId
impl PartialOrd for HookId
impl StructuralPartialEq for HookId
Auto Trait Implementations§
impl Freeze for HookId
impl RefUnwindSafe for HookId
impl Send for HookId
impl Sync for HookId
impl Unpin for HookId
impl UnsafeUnpin for HookId
impl UnwindSafe for HookId
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