pub fn track_once_cell_new<T>(
name: &str,
location: &str,
value: OnceCell<T>,
) -> OnceCell<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 variablevar_id- Unique identifier for the variabletype_name- Type of the static variableis_mutable- Whether this is astatic mutvalue- The initial value (returned unchanged)
§Returns
The input value, unchanged.