Trait FileStr

Source
pub trait FileStr: AsRef<Path> {
Show 15 methods // Provided methods fn clear_dir(&self) { ... } fn remove(&self) { ... } fn build_an_empty_dir(&self) { ... } fn create_a_dir(&self) { ... } fn get_file_vec(&self) -> Result<Vec<String>> { ... } fn get_file_vec_sort(&self) -> Result<Vec<String>> { ... } fn get_file_map(&self) -> Result<impl Iterator<Item = DirEntry>> { ... } fn write_by<T: AsRef<Path> + Debug>(&self, data: T) { ... } fn write_to<T: AsRef<Path>>(&self, data: T) where Self: Debug { ... } fn handle_file_recur(&self, f: fn(&Path)) { ... } fn file_name_str(&self) -> &str { ... } fn parent_str(&self) -> &str { ... } fn split_dir_and_file(&self) -> (&str, &str) { ... } fn file_size(&self) -> f64 { ... } fn check_or_make(&self) { ... }
}

Provided Methods§

Source

fn clear_dir(&self)

Source

fn remove(&self)

Source

fn build_an_empty_dir(&self)

Source

fn create_a_dir(&self)

Source

fn get_file_vec(&self) -> Result<Vec<String>>

Source

fn get_file_vec_sort(&self) -> Result<Vec<String>>

Source

fn get_file_map(&self) -> Result<impl Iterator<Item = DirEntry>>

Source

fn write_by<T: AsRef<Path> + Debug>(&self, data: T)

Source

fn write_to<T: AsRef<Path>>(&self, data: T)
where Self: Debug,

Source

fn handle_file_recur(&self, f: fn(&Path))

Source

fn file_name_str(&self) -> &str

Source

fn parent_str(&self) -> &str

Source

fn split_dir_and_file(&self) -> (&str, &str)

Source

fn file_size(&self) -> f64

Source

fn check_or_make(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: AsRef<Path>> FileStr for T