From 99730e40ae9cc1d1bf6593a5ed91df0c3e4ed57a Mon Sep 17 00:00:00 2001 From: "iliya.saroukha" <iliya.saroukha@hes-so.ch> Date: Fri, 10 Feb 2023 14:29:55 +0100 Subject: [PATCH] added path manipulation module, refactored algo function in main.rs --- src/path_manipulation/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/path_manipulation/mod.rs diff --git a/src/path_manipulation/mod.rs b/src/path_manipulation/mod.rs new file mode 100644 index 0000000..899310c --- /dev/null +++ b/src/path_manipulation/mod.rs @@ -0,0 +1,11 @@ +use std::path::PathBuf; + +pub const STRUCT_DIR: &str = "struct/"; + +pub fn path_algo_project(path: &mut PathBuf, data_struct_name: &String) { + path.push(data_struct_name); +} + +pub fn path_struct_folder(path: &mut PathBuf) { + path.push(STRUCT_DIR); +} -- GitLab