diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-03 12:22:02 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-03 12:22:02 +0100 |
| commit | 3150fd56437ecf8b2a5902c18e3f9ace800b768c (patch) | |
| tree | db8a7e9fc868145804db97da81bd0669aaf55454 /src/layout/text.rs | |
| parent | 40ea35cbe7482ce04096c4d63a848c8601cc1848 (diff) | |
Better Debug/Display and Derives 🧽
Diffstat (limited to 'src/layout/text.rs')
| -rw-r--r-- | src/layout/text.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs index 6b512a07..c6fa45d1 100644 --- a/src/layout/text.rs +++ b/src/layout/text.rs @@ -14,6 +14,7 @@ use super::*; /// Performs the text layouting. +#[derive(Debug)] struct TextLayouter<'a> { ctx: TextContext<'a>, text: &'a str, @@ -24,7 +25,7 @@ struct TextLayouter<'a> { } /// The context for text layouting. -#[derive(Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct TextContext<'a> { /// The font loader to retrieve fonts from when typesetting text /// using [`layout_text`]. |
