Skip to main content

FlatPlacement

Struct FlatPlacement 

Source
pub struct FlatPlacement {
    pub fqn: String,
    pub page: usize,
    pub col: Option<usize>,
    pub descent: Option<(u32, u32)>,
    pub check: bool,
}
Expand description

One authorized SP2 write. col indexes a hand-pinned column-x cluster (None = geometry-exempt, e.g. a wide free-text identity field); descent = (group, ordinal) for per-group strictly- descending-y ordering (None = not in any ordered sequence); check marks a checkbox (only in the no-unmapped scan + any same-y-pair predicate).

Fields§

§fqn: String

Fully-qualified field name that was written.

§page: usize

0-based page the write must land on.

§col: Option<usize>

Logical column index into the per-form hand-pinned x-cluster table (None = not column-checked).

§descent: Option<(u32, u32)>

(descent_group, ordinal) — within a group, center-y must strictly decrease as ordinal rises.

§check: bool

true iff this is a checkbox (geometry-exempt; still in the no-unmapped set).

Implementations§

Source§

impl FlatPlacement

Source

pub fn cell( fqn: impl Into<String>, page: usize, col: usize, grp: u32, ord: u32, ) -> Self

A column-checked, descent-participating money/text cell.

Source

pub fn col_only(fqn: impl Into<String>, page: usize, col: usize) -> Self

A column-checked cell that does NOT participate in any descent sequence.

Source

pub fn free(fqn: impl Into<String>, page: usize) -> Self

A geometry-exempt write (wide free-text identity field): page-checked + no-unmapped only.

Source

pub fn free_ordered( fqn: impl Into<String>, page: usize, grp: u32, ord: u32, ) -> Self

A geometry-exempt write that ALSO participates in a per-group strictly-descending-y ordinal sequence — for a free-text field SEQUENCE with no column geometry to check but a real physical top-to-bottom order the fill assumes (e.g. Form 8275’s Part IV continuation lines, written in part_iv_continuation array order): a map that reordered the array, or a bundled asset whose lines were not actually laid out top-to-bottom in that order, fails closed here instead of silently landing text out of sequence.

Source

pub fn check(fqn: impl Into<String>, page: usize) -> Self

A checkbox: no-unmapped only (+ any same-y-pair predicate the caller runs).

Trait Implementations§

Source§

impl Clone for FlatPlacement

Source§

fn clone(&self) -> FlatPlacement

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlatPlacement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V