track_static_init

Function track_static_init 

Source
pub fn track_static_init<T>(
    var_name: &str,
    var_id: usize,
    type_name: &str,
    is_mutable: bool,
    value: T,
) -> T
Expand description

Track static variable initialization.

Records a StaticInit event. Use this when a static variable is first initialized.

§Arguments

  • var_name - Name of the static variable
  • var_id - Unique identifier for the variable
  • type_name - Type of the static variable
  • is_mutable - Whether this is a static mut
  • value - The initial value (returned unchanged)

§Returns

The input value, unchanged.