pub trait ReadFrom<'vfs, Vfs: Vfs<'vfs> + ?Sized>: Sized + 'vfs {
// Required method
fn read_from(path: &Vfs::Path, vfs: Pin<&'vfs Vfs>) -> VfsResult<Self, Vfs>;
}Expand description
Trait for types / structures that can be read from disk, either from a file or a directory.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".