pub type BracedLengthFn = Rc<dyn Fn(RegisterType) -> Result<RegisterValue>>;Expand description
A package-installed evaluator for a braced LENGTH argument — calc.sty’s
expression scanner. latex.ltx hands every user length to \setlength
(\@hspace, \@imakebox, \@rule, \@iiiparbox, \@iiiminipage, array’s
\@startpbox: latex.ltx:9425, 16099-16102, 16360-16366, 16249, 16305), and
calc redefines \setlength to evaluate its whole argument as an expression
(calc.sty:86, \calc@assign@skip → \calc@open(#4!, :51-53). A binding’s
{Dimension}/{Glue} argument is that \setlength operand, so with calc
loaded crate::parameter::Parameters::reparse_argument evaluates it here:
\makebox[\widthof{ab}+\widthof{cd}] gets the sum, not the first term. The
evaluator reads from the argument’s own mouth, leaving unread whatever calc
could not parse (after reporting it, as calc.sty:281-284 does).
Aliased Type§
pub struct BracedLengthFn { /* private fields */ }