pub fn read<T, F>(path: impl AsRef<Path>, format: F) -> Result<T, Error>where T: Merge + DeserializeOwned, F: Format,
Read the module at path with format.
path
format
See: File
File