pub struct FileSystem {}Implementations§
Source§impl FileSystem
impl FileSystem
pub fn walk<P>(dir_name: P) -> Vec<String>
pub fn read_to_lines<P>(filename: P) -> Result<Lines<BufReader<File>>>
pub fn read_to_string<P>(filename: P) -> Result<String>
pub fn read_to_vector<P>(filename: P) -> Vec<String>
pub fn write_iterator_to_file<T>(file_name: &str, stream: T)where
T: IntoIterator<Item = String>,
pub fn cp(src: &str, target: &str)
pub fn rm(filename: &str)
pub fn exists(filename: &str) -> bool
pub fn dir_size(path: impl Into<PathBuf>) -> Result<u64>
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnwindSafe for FileSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more