diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-03-11 12:59:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-03-11 23:36:06 +0100 |
| commit | 5ac7eb3860ebd3247f6486c227e816894cb8fd91 (patch) | |
| tree | a29a868c681c7de39f15f2d9d3f031db1861b90a /src/eval/show.rs | |
| parent | 5ce2a006b6d45d29be15e4562ae3ab4fc1b8e97c (diff) | |
Rename template to content
Diffstat (limited to 'src/eval/show.rs')
| -rw-r--r-- | src/eval/show.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval/show.rs b/src/eval/show.rs index b0fb8172..e85903d2 100644 --- a/src/eval/show.rs +++ b/src/eval/show.rs @@ -3,15 +3,15 @@ use std::fmt::{self, Debug, Formatter}; use std::hash::Hash; use std::sync::Arc; -use super::{StyleChain, Template}; +use super::{Content, StyleChain}; use crate::diag::TypResult; use crate::util::Prehashed; use crate::Context; /// A node that can be realized given some styles. pub trait Show { - /// Realize the template in the given styles. - fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template>; + /// Realize this node in the given styles. + fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Content>; /// Convert to a packed show node. fn pack(self) -> ShowNode @@ -42,7 +42,7 @@ impl ShowNode { } impl Show for ShowNode { - fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template> { + fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Content> { self.0.show(ctx, styles) } |
