Skip to main content

Module infer

Module infer 

Source
Expand description

Type inference helpers for Python → Rust parameter and assignment types.

Functions§

infer_assign_type
Infer a Rust type annotation suffix for a simple assignment RHS.
infer_params
Infer Rust parameter types from a Python function’s argument list.
infer_type_from_annotation
Infer a Rust type string from a Python type annotation expression.
render_len_checks
Emit Rust length-check guards for Vec parameters.