diff options
| author | Martin Haug <mhaug@live.de> | 2021-05-26 22:52:02 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-26 22:57:29 +0200 |
| commit | e27f6c10146240a6c8b92930b27948083f08c9b5 (patch) | |
| tree | 4b1d1fb574dfa164a76f758f989af04b8897cf6c /src/exec | |
| parent | 14f093bfee3d0871d9796a0dcaf1648b76010930 (diff) | |
Add hash impls for all nodes
This prepares the incremental PR.
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'src/exec')
| -rw-r--r-- | src/exec/state.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exec/state.rs b/src/exec/state.rs index 99c162c6..9a8971cc 100644 --- a/src/exec/state.rs +++ b/src/exec/state.rs @@ -184,7 +184,7 @@ impl Default for FontState { size: Length::pt(11.0), top_edge: VerticalFontMetric::CapHeight, bottom_edge: VerticalFontMetric::Baseline, - scale: Linear::ONE, + scale: Linear::one(), color: Fill::Color(Color::Rgba(RgbaColor::BLACK)), strong: false, emph: false, @@ -193,7 +193,7 @@ impl Default for FontState { } /// Properties used for font selection and layout. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Hash)] pub struct FontProps { /// The list of font families to use for shaping. pub families: Rc<FamilyList>, @@ -210,7 +210,7 @@ pub struct FontProps { } /// Font family definitions. -#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)] +#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct FamilyList { /// The user-defined list of font families. pub list: Vec<FontFamily>, @@ -255,7 +255,7 @@ impl Default for FamilyList { } /// A generic or named font family. -#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)] +#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub enum FontFamily { Serif, SansSerif, |
