pub struct PartIiOverflow {
pub rows_needed: usize,
pub capacity: usize,
pub chars_fit: usize,
}Expand description
Detail for a narrative that will not fit — everything a caller needs to build a helpful refusal
(see btctax-forms::part_ii_capacity_check, used by btctax-cli’s export pre-flight).
Fields§
§rows_needed: usizeHow many single-line fields the narrative actually needs (Part II’s line 1 + however many Part
IV lines) — may UNDER-report for the (pathological, follow-up-tracked) case of a single
unbreakable run of text wider than any one line’s budget, where it is instead inflated to a
value guaranteed to exceed capacity regardless of the true “need.”
capacity: usizeThe total capacity available: 1 (Part II line 1) + the Part IV continuation-line count.
chars_fit: usizeHow many characters of the narrative (NOT counting the inserted Part IV cross-reference prefix)
would land across the capacity lines that ARE available — a real count reconstructed from the
same wrap the fill itself performs, not a fabricated estimate.
Trait Implementations§
Source§impl Clone for PartIiOverflow
impl Clone for PartIiOverflow
Source§fn clone(&self) -> PartIiOverflow
fn clone(&self) -> PartIiOverflow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more