pub struct ComposedField {
pub member: Ident,
pub ty: Type,
pub kind: ComposedKind,
pub condition: Condition,
}Expand description
ONE field of a composed filter: the member it is held in, its type, and which kind of field it is.
PLAIN, for StandaloneModel’s reason — public fields, no
constructor, no validation. What is checked is checked at the FRONT END, where the tokens an
author wrote are still in hand and a refusal can point at one.
Fields§
§member: IdentThe struct field this is read from and written back into.
ty: TypeThe field’s own type, which is what the seam resolves the shape from.
kind: ComposedKindA slot, or a splice.
condition: ConditionThe CONDITION the member is declared under.
Carried on the field rather than looked up, for crate::unit::FilterColumn’s reason: this
door is shared, and only some of the front ends that reach it have a condition seat at all. A
hand-written composed struct has none — its members are the author’s own item, which rustc
strips before this expansion ever sees it — so Condition::always is that door’s answer and
the emission below is byte-identical to the one before this seat existed.
Where a front end DOES have one — the fragment tier, whose members it mints — the predicate has to reach all four walks: the emptiness fold, the parse, the registration and the render. A member present in three of them and absent from the fourth is an input object whose SDL and whose reader disagree.