pub trait ReadFrom {
// Required method
fn read_from(path: &Path) -> Result<Self>
where Self: Sized;
}Expand description
Trait for types / structures that can be read from disk, either from a file or a directory.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl ReadFrom for FileBytes
impl ReadFrom for FileString
impl<T> ReadFrom for DeferredReadOrOwn<T>where
T: ReadFrom,
impl<T> ReadFrom for Json<T>where
T: Serialize + for<'d> Deserialize<'d> + 'static,
Available on crate feature
json only.impl<T> ReadFrom for Ron<T>where
T: Serialize + for<'d> Deserialize<'d> + 'static,
Available on crate feature
ron only.impl<T> ReadFrom for CleanDir<T>where
T: DirStructureItem,
impl<T> ReadFrom for DeferredRead<T>where
T: ReadFrom,
impl<T> ReadFrom for FmtWrapper<T>
impl<T> ReadFrom for Toml<T>where
T: Serialize + for<'d> Deserialize<'d> + 'static,
Available on crate feature
toml only.impl<T> ReadFrom for Yaml<T>where
T: Serialize + for<'d> Deserialize<'d> + 'static,
Available on crate feature
yaml only.