Skip to main content

recursion_depth

Attribute Macro recursion_depth 

#[recursion_depth]
Expand description

Reports an annotated item’s parsed syntax-tree depth and length during compilation.

Expansion prints the greatest indentation depth and formatted tree line count. The annotated item is returned unchanged.