mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
git: reset
This commit is contained in:
22
parser/src/structs/any_map.rs
Normal file
22
parser/src/structs/any_map.rs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user