pub trait Format {
// Required method
fn read<T>(&mut self, path: &Path) -> Result<Module<T>, Error>
where T: DeserializeOwned;
}Available on crate feature
file only.Expand description
Required Methods§
Sourcefn read<T>(&mut self, path: &Path) -> Result<Module<T>, Error>where
T: DeserializeOwned,
fn read<T>(&mut self, path: &Path) -> Result<Module<T>, Error>where
T: DeserializeOwned,
Read the module at path.
See trait-level docs for more information.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".