use std::any::{Any, TypeId}; use std::fmt::{self, Debug, Formatter}; use std::hash::Hash; use std::sync::Arc; use super::{StyleChain, Template}; 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