pub trait WriteTo<'vfs, Vfs: WriteSupportingVfs<'vfs> + ?Sized> {
// Required method
fn write_to(
&self,
path: &Vfs::Path,
vfs: Pin<&'vfs Vfs>,
) -> VfsResult<(), Vfs>;
}Expand description
Trait for types / structures that can be written to disk. All types in the library that write to files first check that the parent directories exist, so implementations of this that create the whole directory are not necessary (unless used empty children directories, in which case no directories will really be created).