Skip to main content

FieldNotesHook

Type Alias FieldNotesHook 

Source
pub type FieldNotesHook = fn(&Token, FieldCover, FieldInvocation<'_>);
Expand description

What runs on each field token’s invocation while a rehearsal takes notes on what its boxes do not hold (the frontmatter observer’s field_notes, in the engine): Token::prov’s test in the stomach, then this. All the core knows of them, so no line of theirs sits among the code the core’s hot path is inlined from (Z01: the same lines here cost a text document 0.17 % of instructions:u with no call made, a reshuffle of the crate’s codegen units).