Skip to main content

outline

Function outline 

Source
pub fn outline(dir: &Path, path: &str) -> Result<String>
Expand description

Returns a skeleton view of a source file by eliding function and class bodies with ....

Falls back to the full raw source if the file’s language is not supported by the parser.

§Security

Path lookup is performed against the SQLite cache only — no filesystem reads occur. codebones.db is a trust boundary: callers must ensure the database file has appropriate filesystem permissions and has not been tampered with.