summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-30 18:47:17 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-30 18:47:17 +0100
commite6e5aad7cef36a40a8d808fca02866649e464d87 (patch)
treea524eb37d960990760182d6790ff9d3d3934b2c0 /src/doc.rs
parentdb96ecae94a7c06d04528e8d4461ebca86d2d249 (diff)
Refactor font providing ⚙
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc.rs b/src/doc.rs
index 3ffc7f8c..83a3b300 100644
--- a/src/doc.rs
+++ b/src/doc.rs
@@ -5,7 +5,7 @@ use crate::engine::Size;
/// A complete typesetted document, which can be exported.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone)]
pub struct Document {
/// The pages of the document.
pub pages: Vec<Page>,
@@ -14,7 +14,7 @@ pub struct Document {
}
/// A page with text contents in a document.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone)]
pub struct Page {
/// The width of the page.
pub width: Size,
@@ -25,14 +25,14 @@ pub struct Page {
}
/// A series of text command, that can be written on to a page.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone)]
pub struct Text {
/// The text commands.
pub commands: Vec<TextCommand>,
}
/// Different commands for rendering text.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone)]
pub enum TextCommand {
/// Writing of the text.
Text(String),