Expand description
The module defines Python-syntax arguments and maps them into Rust-syntax versions.
Structs§
- Argument
- A complete argument representation that can hold any Python expression. This replaces the limited Arg enum to support all argument types.
- Arguments
- Comprehensive function arguments structure supporting all Python argument types.
- Call
Arguments - Function call arguments supporting all Python call patterns.
- Parameter
- A function parameter definition with optional type annotation and default value.
Functions§
- python_
annotation_ to_ rust_ type - Map a Python type annotation to a Rust type, when the mapping is known.
int/float/str/bool/bytesmap to concrete Rust types, andlist[T]/dict[K, V]/set[T]map to the corresponding std containers when their element annotations map too.Optional[T]/T | Nonemap toOption<T>.
Type Aliases§
- Arg
- An argument value that can be any expression. This replaces the old limited Arg enum.