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§
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)
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.