diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
| commit | a7b403fd742941f6b163f06876aec96729db707f (patch) | |
| tree | b5062eddbcb814713b65f59d3f59dfe7e2bcaca8 /src/library/text.rs | |
| parent | 0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff) | |
Rename `Node` to `Template`
Diffstat (limited to 'src/library/text.rs')
| -rw-r--r-- | src/library/text.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/text.rs b/src/library/text.rs index 019f8c35..05b213c8 100644 --- a/src/library/text.rs +++ b/src/library/text.rs @@ -95,7 +95,7 @@ impl TextNode { /// Raw OpenType features to apply. pub const FEATURES: Vec<(Tag, u32)> = vec![]; - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { // The text constructor is special: It doesn't create a text node. // Instead, it leaves the passed argument structurally unchanged, but // styles all text in it. @@ -156,8 +156,8 @@ pub struct StrongNode; #[class] impl StrongNode { - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { - Ok(args.expect::<Node>("body")?.styled(TextNode::STRONG, true)) + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { + Ok(args.expect::<Template>("body")?.styled(TextNode::STRONG, true)) } } @@ -166,8 +166,8 @@ pub struct EmphNode; #[class] impl EmphNode { - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { - Ok(args.expect::<Node>("body")?.styled(TextNode::EMPH, true)) + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { + Ok(args.expect::<Template>("body")?.styled(TextNode::EMPH, true)) } } |
