Skip to main content

search_code

Function search_code 

Source
pub fn search_code(
    sources: &[(String, PathBuf)],
    name: &str,
    kind: Option<ItemKind>,
    args: &CodeArgs,
    in_type: Option<&str>,
) -> Result<String>
Expand description

Search source files for code definitions matching kind and name.

sources: list of (crate_name, source_root) pairs to scan.