teo_runtime/utils/
mod.rs

1pub mod find_main_schema_file;
2
3pub use find_main_schema_file::find_main_schema_file;
4
5pub(crate) fn next_path(path: &Vec<String>, name: &str) -> Vec<String> {
6    let mut new_path = path.clone();
7    new_path.push(name.to_string());
8    new_path
9}
10
11pub trait ContainsStr {
12
13    fn contains_str(&self, str: &str) -> bool;
14}
15
16impl ContainsStr for Vec<String> {
17
18    fn contains_str(&self, str: &str) -> bool {
19        self.iter().find(|v| v.as_str() == str).is_some()
20    }
21}