summaryrefslogtreecommitdiff
path: root/src/model/element.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/element.rs')
-rw-r--r--src/model/element.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/element.rs b/src/model/element.rs
index 4c825a20..e26848b1 100644
--- a/src/model/element.rs
+++ b/src/model/element.rs
@@ -151,3 +151,9 @@ impl Debug for Label {
/// Indicates that an element cannot be labelled.
pub trait Unlabellable {}
+
+/// Tries to extract the plain-text representation of the element.
+pub trait PlainText {
+ /// Write this element's plain text into the given buffer.
+ fn plain_text(&self, text: &mut EcoString);
+}