From 9db6e533cd8a1d925a7daad92e1b99e6f98ac773 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 26 Nov 2022 15:34:02 +0100 Subject: Make content a bit more compact --- src/model/content.rs | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'src/model') diff --git a/src/model/content.rs b/src/model/content.rs index a7161798..2f7e7671 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -7,6 +7,7 @@ use std::sync::Arc; use comemo::Tracked; use siphasher::sip128::{Hasher128, SipHasher}; +use thin_vec::ThinVec; use typst_macros::node; use super::{capability, Args, Guard, Key, Property, Recipe, Style, StyleMap, Value, Vm}; @@ -19,9 +20,15 @@ use crate::World; #[derive(Clone, Hash)] pub struct Content { obj: Arc, - guards: Vec, span: Option, - label: Option