pub fn extract_semantic_units(
path: &Path,
) -> Result<Vec<SemanticUnit>, AppError>Expand description
Extracts semantic units from a Rust source file
§Arguments
path- Path to the Rust source file
§Returns
Vector of semantic units or error
§Errors
Returns error if file cannot be read or parsed
§Examples
use std::path::Path;
use rust_diff_analyzer::analysis::extract_semantic_units;
let units = extract_semantic_units(Path::new("src/lib.rs"));