Trait e_utils::parse::AutoPath

source ·
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§

source

fn auto_create_dir(&self) -> Result<()>

自检查创建目录

source

fn auto_remove_dir(&self) -> Result<()>

自检查移除目录

source

fn auto_create_file<S>(&self, content: S) -> Result<()>
where S: AsRef<str>,

自检查创建文件

source

fn auto_remove_file(&self) -> Result<()>

自检查移除文件

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AutoPath for Path

Implementors§

source§

impl<T: AsRef<str>> AutoPath for T