pub trait HostDirWrite {
type FileWrite: HostFileWrite;
// Required methods
fn create_file(
&mut self,
name: &FileName,
) -> Result<Self::FileWrite, IoError>;
fn create_dir(&mut self, name: &FileName) -> Result<Self, IoError>
where Self: Sized;
}Expand description
Host directory writer.
Required Associated Types§
type FileWrite: HostFileWrite
Required Methods§
fn create_file(&mut self, name: &FileName) -> Result<Self::FileWrite, IoError>
fn create_dir(&mut self, name: &FileName) -> Result<Self, IoError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".