git: reset

This commit is contained in:
k
2024-06-23 17:38:53 +02:00
commit a1a576d088
375 changed files with 40952 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
pub trait AnyMap {
fn path(&self) -> &str;
fn path_last(&self) -> &Option<String>;
fn t_name(&self) -> &str;
fn exported_path_with_t_name(&self) -> Vec<(&str, &str)> {
let t_name = self.t_name();
if let Some(path_last) = self.path_last() {
vec![(self.path(), t_name), (path_last, t_name)]
} else {
vec![(self.path(), t_name)]
}
}
// fn reset(&mut self) -> color_eyre::Result<()>;
fn pre_export(&mut self);
fn export(&self) -> color_eyre::Result<()>;
fn post_export(&mut self);
}