pub struct TwoPassPlan {
pub segments: Vec<SegmentPlan>,
pub notes: Vec<String>,
}Expand description
The result of draft_and_route: one SegmentPlan per input segment,
plus any honesty caveats that apply to the whole plan.
The measurable split is TwoPassPlan::summary.
Fields§
§segments: Vec<SegmentPlan>One plan per input segment, in input order.
notes: Vec<String>Plan-wide caveats: the ECHO_PASSTHROUGH_NOTE when drafted against the
stub, and the standing reminder that AcceptLocal is a routing decision,
not a correctness guarantee.
Implementations§
Source§impl TwoPassPlan
impl TwoPassPlan
Sourcepub const AUTHORITATIVE: bool = false
pub const AUTHORITATIVE: bool = false
A Decision::AcceptLocal is a routing decision, never the final
authority on whether a translation is correct (§13 Task III-6, mirroring
[crate::preprocess]). A compile-time constant so callers can encode
“do not gate correctness on this plan” in their own logic and tests.
Sourcepub fn summary(&self) -> TwoPassSummary
pub fn summary(&self) -> TwoPassSummary
The measurable split: totals and the local fraction (§13 — report the split so the saving is measurable).
Trait Implementations§
Source§impl Clone for TwoPassPlan
impl Clone for TwoPassPlan
Source§fn clone(&self) -> TwoPassPlan
fn clone(&self) -> TwoPassPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more