Skip to main content

parse_display_file

Function parse_display_file 

Source
pub fn parse_display_file(
    path: impl AsRef<Path>,
    from: Option<&str>,
) -> Result<DisplayData, Error>
Expand description

Parse the display file at path, choosing the reader from from or, when None, from the extension. v0.2.2 infers PowerWorld .pwd.

§Errors

Error::UnknownFormat if from is unrecognized or the extension cannot be mapped; Error::Io if the file cannot be read; the reader’s own Error on malformed input.