Module name

Module name 

Source

Functions§

access_ident_recursive
Walk a syn::Expr and produce the root identifier together with any field projections.
extract_pat_ident đź”’
Parse argument names and types from a local function’s HIR body. Recursively unwrap Ref/Paren patterns to find the inner binding identifier. Needed because &self / &mut self produce PatKind::Ref(PatKind::Binding(…)).
find_declared_generic_param đź”’
find_generic_in_ty
Recursively walk a Ty tree looking for a type whose name matches type_ident.
find_generic_param
Search function parameters (and the self type for methods) for a generic type whose name matches type_ident.
get_cleaned_def_path_name
Clean a DefId debug representation into a human-readable path.
get_known_std_names
Look up known argument names for standard-library APIs.
get_std_api_signature_json
Return the JSON value loaded from the pre-computed standard-library signature map (data/std_sig.json).
get_struct_name
Extract the implementing struct name from a DefId that belongs to an associated item (method / associated function).
get_struct_self_ty
Return the resolved self type for a method whose DefId points to an associated item that lives inside an impl block returning an ADT.
match_primitive_type
Match a string against Rust’s primitive types, returning the corresponding Ty from the type context.
match_ty_with_ident
Match a type-identifier string to a concrete Ty.
parse_local_signature
parse_outside_signature
Parse argument names and types from an external function’s type signature.
parse_signature
Dispatch argument-name/type parsing to either the local HIR path or the external type-based path.