pub enum PseudoDisclosure {
None,
Synthetic,
Placeholder,
}Expand description
UX-P4-1: the pseudo-disclosure channel for a tax-year figure — which, if any, deliberately-synthetic
input the number rides on. Carries the FULL §3.1 predicate (pseudo_active() OR PseudoPlaceholder) so a
caller cannot thread a single disjunct and silently drop the other (SPEC r2-N3). The two active channels
are mutually exclusive by PRECEDENCE — Synthetic (a pseudo synthetic lot/FMV; pseudo_active(), i.e.
pseudo_synthetic_count > 0) is chosen ahead of Placeholder (computed on the all-$0 pseudo placeholder
profile; mode on, nothing stored, count == 0) — even though the underlying states can co-occur.
Variants§
None
Not pseudo-contributed — no banner, no suffix.
Synthetic
A pseudo synthetic lot/FMV feeds the figure (pseudo_active()).
Placeholder
Computed on the all-$0 pseudo placeholder profile (mode on, nothing stored, count == 0).
Implementations§
Source§impl PseudoDisclosure
impl PseudoDisclosure
Sourcepub fn contributed(self) -> bool
pub fn contributed(self) -> bool
True iff the figure is pseudo-contributed (either active channel).
Sourcepub fn suffix(self) -> &'static str
pub fn suffix(self) -> &'static str
The [PSEUDO] suffix for a headline total line (leading space kept so a last-field scraper reads
[PSEUDO] and fails loud), or "" when not contributed.
The channel-aware top banner (with a trailing newline), or "" when not contributed. Each clause is
true for its channel; the remedy pointers are live only for the channel that fires them (SPEC §3.1).
Trait Implementations§
Source§impl Clone for PseudoDisclosure
impl Clone for PseudoDisclosure
Source§fn clone(&self) -> PseudoDisclosure
fn clone(&self) -> PseudoDisclosure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PseudoDisclosure
Source§impl Debug for PseudoDisclosure
impl Debug for PseudoDisclosure
impl Eq for PseudoDisclosure
Source§impl PartialEq for PseudoDisclosure
impl PartialEq for PseudoDisclosure
impl StructuralPartialEq for PseudoDisclosure
Auto Trait Implementations§
impl Freeze for PseudoDisclosure
impl RefUnwindSafe for PseudoDisclosure
impl Send for PseudoDisclosure
impl Sync for PseudoDisclosure
impl Unpin for PseudoDisclosure
impl UnsafeUnpin for PseudoDisclosure
impl UnwindSafe for PseudoDisclosure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.