Skip to main content
Module typetree
rustc_
middle
1.99.0-nightly
(14cae6813 2026-07-08)
Module typetree
Module Items
Constants
Functions
In rustc_
middle::
ty
rustc_middle
::
ty
Module
typetree
Copy item path
Source
Constants
ยง
MAX_
TYPETREE_
DEPTH
๐
Maximum recursion depth for TypeTree generation to prevent stack overflow from pathological deeply nested types. Combined with cycle detection.
Functions
ยง
fnc_
typetrees
Generate TypeTree information for autodiff. This function creates TypeTree metadata that describes the memory layout of function parameters and return types for Enzyme autodiff.
handle_
indirection
๐
typetree_
from_
ty
Generate a TypeTree for a specific type. Mainly a convenience wrapper around the actual implementation.
typetree_
from_
ty_
impl_
inner
๐
Internal implementation with context about whether this is for a reference target.