Expand description
Page-rewrite scheduler.
schedule_rewrites runs Kahn’s algorithm over the declared
PageRewrite::reads / writes axes to produce a deterministic
topological order — a rewrite that writes category X runs before
any rewrite that reads X. Cycles and unannotated Custom
rewrites abort construction with
EngineConstructionError.
This runs once at [Engine::new] and its output is cached on the
engine instance; per-document rewrite evaluation walks the
pre-computed order without re-sorting.
Functions§
- schedule_
rewrites - Compute the topological order of
rewritesby theirreads/writesaxes.