//! Native alignment templates and unset rows (TeX WEB, parts 25 and 37). //! Delimiters switch templates at the raw-token boundary, including during //! macro argument scans; cells are never collected as strings or recompiled. use super::super::boxes::{self, PackSpec, VerticalBuilder}; use super::*; #[derive(Clone, Copy)] pub(super) enum Boundary { Prefix, Entry, Peek, } #[derive(Clone, Copy, PartialEq, Eq)] enum Stage { Preamble, Peek, Entry, Suffix, Noalign(usize), } #[derive(Clone)] struct Template { prefix: Vec, suffix: Vec, } #[derive(Clone)] struct Cell { last: usize, node: NativeBox, } #[derive(Clone)] pub(super) struct AlignmentFrame { horizontal: bool, span: Span, spec: PackSpec, depth: usize, stage: Stage, templates: Vec