diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
| commit | 9ba4d2c134479aad876a0e2ac4cd1622a353109e (patch) | |
| tree | a94e0e6ae53a1ba440e869fca26cc2ea0b179057 /src/model/content.rs | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index f261f9b1..e73fa4a8 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -10,7 +10,9 @@ 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}; +use super::{ + capability, capable, Args, Guard, Key, Property, Recipe, Style, StyleMap, Value, Vm, +}; use crate::diag::{SourceResult, StrResult}; use crate::syntax::Span; use crate::util::{EcoString, ReadableTypeId}; @@ -342,6 +344,7 @@ impl Hash for dyn Bounds { } /// A node with applied styles. +#[capable] #[derive(Clone, Hash)] pub struct StyledNode { /// The styled content. @@ -364,6 +367,7 @@ impl Debug for StyledNode { /// /// Combines other arbitrary content. So, when you write `[Hi] + [you]` in /// Typst, the two text nodes are combined into a single sequence node. +#[capable] #[derive(Clone, Hash)] pub struct SequenceNode(pub Vec<Content>); |
