Skip to main content

Module type_inspect

Module type_inspect 

Source
Expand description

Lightweight type-introspection helpers shared by parsing and codegen.

Enumsยง

SeveralOkContainer ๐Ÿ”’
Container family for a several_ok parameter, returned by classify_several_ok_container.

Functionsยง

classify_several_ok_container ๐Ÿ”’
Classify a several_ok parameter type into one of the four container families and extract its inner element type T.
first_type_argument ๐Ÿ”’
Returns the first generic type argument from a path segment.
is_sexp_type ๐Ÿ”’
Returns true if ty is syntactically SEXP.
nth_type_argument ๐Ÿ”’
Returns the n-th generic type argument from a path segment.
second_type_argument ๐Ÿ”’
Returns the second generic type argument from a path segment.