Function parse_file

Source
pub fn parse_file<T: AsRef<OsStr>>(file: T) -> Result<Parser>
Expand description

Transform RustDOT from file at run time. Input is tried as UTF-8, UTF-16 and Latin-1 (see details at parse_bytes()).

ยงExamples

let g = parse_file("polka.dot");