track_const_eval

Function track_const_eval 

Source
pub fn track_const_eval<T>(
    const_name: &str,
    const_id: usize,
    type_name: &str,
    location: &str,
    value: T,
) -> T
Expand description

Track const evaluation.

Records a ConstEval event. Use this when a const value is evaluated.

§Arguments

  • const_name - Name of the const
  • const_id - Unique identifier
  • type_name - Type of the const
  • location - Source location
  • value - The const value (returned unchanged)

§Returns

The input value, unchanged.