Function load
Source pub fn load<M: DeserializeOwned>(
path: impl AsRef<Path>,
expected_type: ModelType,
) -> Result<M>
Expand description
Load a model from .apr format
§Arguments
path - Input file path
expected_type - Expected model type (for type safety)
§Errors
Returns error on I/O failure, format error, or type mismatch