Skip to main content

read_budget

Function read_budget 

Source
pub fn read_budget(reads: usize) -> ReadBudget
Expand description

A run of digestion’s limit on the tokens it reads, until ReadBudget::end: the read past it fails, and so does each one after, with an ErrorCategory::ReadBudget error that is logged nowhere and latches nothing, so whoever made the run ends it and the document goes on. The title-page check’s runs (latexml_engine sect05.rs speculative_run_read): a run’s cost is bounded whatever the document’s text does. The count is the one progress keeps; the token limit, the deadline and the cycle guard read theirs as before.