Skip to main content

extract_file_structure

Function extract_file_structure 

Source
pub fn extract_file_structure(path: &str, content: &str) -> Option<String>
Expand description

Extract a structural summary (signatures, imports) from file content.

Dispatches to language-specific extractors based on file extension. Returns None for unrecognized file types or when no structure is found. Silently skips unrecognized types — no error is returned.