pub trait AutoPath {
// Required methods
fn auto_create_dir(&self) -> Result<()>;
fn auto_remove_dir(&self) -> Result<()>;
fn auto_create_file<S>(&self, content: S) -> Result<()>
where S: AsRef<str>;
fn auto_remove_file(&self) -> Result<()>;
}Expand description
自动检查创建目录
Required Methods§
sourcefn auto_create_dir(&self) -> Result<()>
fn auto_create_dir(&self) -> Result<()>
自检查创建目录
sourcefn auto_remove_dir(&self) -> Result<()>
fn auto_remove_dir(&self) -> Result<()>
自检查移除目录
sourcefn auto_remove_file(&self) -> Result<()>
fn auto_remove_file(&self) -> Result<()>
自检查移除文件
Object Safety§
This trait is not object safe.