Function bakery::load_from_file_with_recipe [−][src]
pub fn load_from_file_with_recipe<T>(
rec_path: &str,
dat_path: &str
) -> Result<T, LoadError> where
T: DeserializeOwned,
Expand description
Load an object from a data file, given a recipe defined in a recipe file.
If the binary image of the data file does not exist or is outdated, it is built and cached. If the recipe has been changed, the binary is rebuilt as well.
Arguments
rec_path
- Path to the recipe filedat_path
- Path to the data file