Skip to main content

create_hook_context

Function create_hook_context 

Source
pub fn create_hook_context() -> HookContext
Expand description

Creates a new HookContext with a fresh inner state.

Delegates to HookContext::default() which initializes an empty hook storage list, a zero hook index, and an empty cleanup list.

ยงReturns

  • HookContext: A newly created hook context with default state.