From e27f6c10146240a6c8b92930b27948083f08c9b5 Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Wed, 26 May 2021 22:52:02 +0200 Subject: Add hash impls for all nodes This prepares the incremental PR. Co-Authored-By: Laurenz --- src/exec/state.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/exec') 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, @@ -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, @@ -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, -- cgit v1.2.3