Function rcue::parser::parse_from_file
source · [−]Expand description
Parses a CUE file at path into a Cue struct.
Strict mode (strict: true) will return a CueError if invalid fields or extra lines are detected.
When not in strict mode, bad lines and fields will be skipped, and unknown
fields will be stored in Cue.unknown.
Example
use rcue::parser::parse_from_file;
let cue = parse_from_file("test/fixtures/unicode.cue", true).unwrap();
assert_eq!(cue.title, Some("マジコカタストロフィ".to_string()));Failures
Fails if the CUE file can not be parsed from the file.