parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path) -> Result<File, ParseError>
Expand description

Parse a Rust source file

ยงErrors

Returns ParseError::Io if the file cannot be read, or ParseError::Syntax if the file contains invalid Rust syntax.