pub trait Format {
// Required method
fn read<T>(&mut self, path: &Path) -> Result<Module<T>, Error>
where T: DeserializeOwned;
}
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", so this trait is not object safe.