assert_hook_unique_order

Function assert_hook_unique_order 

Source
pub fn assert_hook_unique_order(list: Vec<HookMacro>)
Expand description

Verify that each Hook in the list with the same type and non-zero priority is unique.

This function iterates over all provided Hook items and ensures that no two Hook items of the same type define the same non-zero order. If a duplicate is found, the function will panic at runtime.

§Arguments

  • Vec<HookMacro>- A vector of HookMacro instances to be checked.

§Panics

  • Panics if two or more Hook items of the same type define the same non-zero order.