pub struct RunState { /* private fields */ }Expand description
Mutable per-render-run state: citation numbering, cite-order tracking, and dynamic (cite-time) compound-group membership.
Create with Processor::begin_run;
populate via registration methods (&self, &mut RunState); consume via
finalize before rendering.
Clone is provided for long-lived callers (e.g. the FFI session handle)
that need to render a bibliography from a snapshot of the current state
without pausing ongoing citation registration on the original RunState.
Implemented by hand (rather than derived) because RwLock<T> is not
Clone even when T is; the impl below clones the locked contents into
fresh locks instead.
Implementations§
Source§impl RunState
impl RunState
Sourcepub fn finalize(self) -> FinalizedRun
pub fn finalize(self) -> FinalizedRun
Complete the registration phase, producing a FinalizedRun.
This is a plain newtype wrap with no additional computation; it
exists purely as a compile-time marker that registration for this
run is considered complete, so rendering methods that require
citation order/numbering can require &FinalizedRun instead of
&RunState.