Skip to main content

Module search

Module search 

Source
Expand description

THE SEARCH RECIPE’s model — the members a recipe fuses, the towers bound to them, and the seats one broadcast question is filled at. What a SEARCH RECIPE declared: the members it fuses, the towers it binds to them, and the seats a caller broadcasts one question into.

ⓘ
#[ingraph::search(shared(text(type = "String")), dedup(hash), limit = 20)]
pub struct TravelSearch {
  #[ingraph(weight = 1.0, depth = 50, tower(zh(type = "crate::ZhQuery", shared)))]
  subs: Subs,
  #[ingraph(weight = 2.0, depth = 100,
    tower(text(type = "crate::ClipText", shared, floor = "crate::floors::SEM_TEXT")),
    tower(image(type = "crate::ClipImage", shared)))]
  shots: Shots,
}

§FIELDS ARE MEMBERS, which is what deleted the word-count door laws

A recipe LISTS what it fuses. A field’s NAME is the member’s name and its TYPE is the index that member reads, so there is nothing here that mints a name, nothing that counts words to decide how many members a door has, and nothing to trim: the arity is the declaration’s own field list. That is the same collapse the tower grammar made one layer down, where fields became steps.

§THE MODEL IS ONE CLOCK, and the compiler is the other

Everything here is what the DECLARATION SAID. A tower is carried as the TYPE PATH the word named, never as a name this pass mangled out of one and never as a fact it went looking for: whether that type is a tower, what it is asked, what it answers and what knobs it seats are questions only the compiler can answer, and the emission asks them as projections off DeclaredTower and SearchTower where it can see them. A model that resolved a path would be guessing across the expansion wall — the wall the Declared… record family exists to be shouted over.

§ABSENCE IS A ROAD at every number here

weight, depth, limit and both floors are Option, and None never means a value this pass invented. It means the declaration named none, and the tier below it answers: the resolution order is request > this recipe > the election’s own field > its container > the framework’s own number. A model that defaulted a number here would be a recipe silently outranking an election that had a better answer.

Structs§

ArmModel
ONE BOUND TOWER — tower(text(type = "crate::ClipText", shared, floor = "…")).
MemberModel
ONE MEMBER — the field, the index it reads, and the defaults the recipe declares for its route.
SearchModel
A validated search recipe, ready to emit.
SeatModel
ONE BROADCAST SEAT — the head’s shared(<name>(type = "…")).
SharedBinding
WHERE AN ARM’S QUESTION COMES FROM when the recipe was asked once — the resolved shared word.

Enums§

SharedBridge
THE BRIDGE a broadcast seat crosses to reach one arm’s question — the word inside shared.