Skip to main content

Module parser

Module parser 

Source

Structs§

ItemSummary
A non-module item directly inside a module (used for include_items output).
ModuleNode
SearchResult

Functions§

build_module_tree
extract_feature_requirements
Extract feature requirements from rustdoc JSON item attributes.
format_generics_for_item
Extract generic params from the inner block of any item kind (struct/enum/trait/type alias). Returns a formatted <T, 'a, const N: usize> string, or empty string if none.
function_signature
Reconstruct a function signature from rustdoc JSON format v57.
search_items
Search for items in the rustdoc JSON by name or concept.
struct_fields
Reconstruct a struct’s signature fields.
type_to_string
Recursively convert a rustdoc JSON Type value to a human-readable string.