pub struct RenderPlan {
pub nodes: Vec<RenderedNode>,
pub doc_scope_count: usize,
pub root_diagnostics: Vec<String>,
}Expand description
Outcome of the render-dispatch walk: a list of per-node render results in document order, plus any document-root diagnostics (panic, namespace disabled).
Fields§
§nodes: Vec<RenderedNode>§doc_scope_count: usizeHow many entries at the head of nodes came
from document.document_annotations (the doc-scope slot)
rather than the body walk. tree_to_events does not emit
events for that slot (Phase 3b of #614 made doc-scope IR-only),
so an event-indexed splice consumer (the HTML serializer) must
skip these prefix entries to keep its index aligned with the
StartAnnotation events it actually receives. Routing doc-
scope handler output back into the rendered HTML is still a
follow-up — the entries are surfaced in the plan and their
diagnostics flow through, but no splice site exists for them
yet.
root_diagnostics: Vec<String>Root-level diagnostics from the registry (e.g., a namespace disabled after a panic).
Auto Trait Implementations§
impl Freeze for RenderPlan
impl RefUnwindSafe for RenderPlan
impl Send for RenderPlan
impl Sync for RenderPlan
impl Unpin for RenderPlan
impl UnsafeUnpin for RenderPlan
impl UnwindSafe for RenderPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more