Skip to main content

read_version

Function read_version 

Source
pub fn read_version(path: impl AsRef<Path>) -> Result<String>
Expand description

Read only the /version string from a .nir file.

§Errors

NirError::MissingField when the file has no /version dataset; otherwise as read.