Skip to main content
Module typetree
rustc_
middle
1.98.0-beta.1
(6b3fa2674 2026-07-06)
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.
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.