pub struct MemberModel {
pub field: Ident,
pub ty: Type,
pub weight: Option<f64>,
pub depth: Option<NonZeroU32>,
pub floor: Option<Path>,
pub arms: Vec<ArmModel>,
}Expand description
ONE MEMBER — the field, the index it reads, and the defaults the recipe declares for its route.
Fields§
§field: IdentThe field that names this member — its ONE name, and the span every refusal about it is reported at.
ty: TypeThe INDEX this member reads, as the field declared it.
Carried as the type it was written as and never resolved: whether it is an index, what it is addressed by and whether its coordinates meet this member’s arms are the emission’s questions, asked where the compiler can answer them.
weight: Option<f64>This member’s coefficient in the recipe’s fold — weight = 2.0, and this word’s FIRST
declaration-side home.
None where the word was omitted, under which the member takes the request layer’s own
Route::DEFAULT_WEIGHT — the multiplicative identity, so a recipe where nobody weighted
anything runs the unweighted fold exactly rather than an approximation of it.
depth: Option<NonZeroU32>How deep this member’s route is asked when nothing asks otherwise — depth = 100.
None where the word was omitted, on SearchModel::limit’s road: it defers rather than
defaults, and a declared ceiling CAPS whatever it says wherever it is spent.
floor: Option<Path>The FLOOR this member’s route is read at, as a const PATH — floor = "crate::floors::SEM".
A PATH and never a literal, which is §4’s law rather than this grammar’s taste: a floor is a value in the ENGINE’s own currency, an open type this framework never sees, so there is nothing here that could parse one. A const is a value its own crate already built.
None where the word was omitted, under which the read has no declared floor and whatever
the request names is the only one.
arms: Vec<ArmModel>The towers bound to this member, in declaration order — EMPTY for a plain coordinate member.
Each is one ARM of this member’s question, and its name is that arm’s name.