usecrate::PurePath;/// A path trait.
pubtraitPath: PurePath {/// Returns whether the path exists.
fnexists(&self)->bool;/// Returns whether the path is a directory.
fnis_dir(&self)->bool;/// Returns whether the path is a file.
fnis_file(&self)->bool;/// Returns the directory entries.
fnread_dir(&self)->Vec<Self>;/// Reads the file.
fnread_file(&self)->Vec<u8>;/// Writes the file.
fnwrite_file(&self, data:&[u8]);}