summaryrefslogtreecommitdiff
path: root/src/model/element.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-17 13:25:31 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-17 13:26:49 +0200
commit9bdc4a7de0fb685fa2b8d02280e70aa0b5d92bf9 (patch)
treee67c75c32183e734272943107ad2d034b1e8e818 /src/model/element.rs
parent428c55b6eed3536bb228924c6fb0ad6cea6d6d4b (diff)
Write PDF outline
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);
+}