Function parse_rust_file
Source pub fn parse_rust_file<P: AsRef<Path>>(path: P) -> Result<File>
Expand description
Parse Rust source code from a file into an AST
§Arguments
path: impl AsRef - path to the rust source file
§Returns
io::Result<syn::File> - ast
§Errors
io::Error - file read error
syn::Error - parse error (wrapped in io::Error)