summaryrefslogtreecommitdiffstats
path: root/src/modes/edit/selectable_content.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/edit/selectable_content.rs')
-rw-r--r--src/modes/edit/selectable_content.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modes/edit/selectable_content.rs b/src/modes/edit/selectable_content.rs
index 3374104..d953cf4 100644
--- a/src/modes/edit/selectable_content.rs
+++ b/src/modes/edit/selectable_content.rs
@@ -24,6 +24,10 @@ pub trait Content<T>: Selectable {
/// [`tuikit::attr:Attr`] used to display an element
fn attr(&self, index: usize, attr: &tuikit::attr::Attr) -> tuikit::attr::Attr;
}
+
+pub trait ToPath {
+ fn to_path(&self) -> &std::path::Path;
+}
/// Implement the `SelectableContent` for struct `$struc` with content type `$content_type`.
/// This trait allows to navigate through a vector of element `content_type`.
/// It implements: `is_empty`, `len`, `next`, `prev`, `selected`.