pub enum PollBody {
Light,
Citizen(Path),
}Expand description
WHO runs one poll entry’s ticks — the two roads a clock’s mandatory body word names.
§A closed vocabulary, so an enum
The house rule, and this seat is where it had been paid for with an Option<syn::Path> instead.
None meant the entry wrote light rather than nothing is known, which the grammar
guarantees with three refusals — an entry naming neither word, an entry naming both, and a
light entry in a detached mode — so no unstated state ever reached the model. What the Option
cost was that the guarantee lived in a comment: a reader of the field had to be told which of
two meanings the empty case carried, and a caller writing entry.handler.is_none() was spelling
light in a way nothing checked.
The arms say it instead. Light is a WORD and not an absence, and Citizen
carries the one thing the other road has to name.
Variants§
Light
The bare light — the tick runs a <Node>Sweeps method on the node’s own operator, which the
driver lends for the call and takes back.
Citizen(Path)
handler = "app::PromScraper" — a CITIZEN the deployment builds, ticked through its own face.
A PATH for Grant::node’s reason: nothing here can resolve it, the type being the
application’s, and the compiler resolves it where the expansion lands.
Implementations§
Source§impl PollBody
impl PollBody
Sourcepub const fn citizen(&self) -> Option<&Path>
pub const fn citizen(&self) -> Option<&Path>
The citizen this body mounts, or None where it is the operator’s own.
The accessor every consumer spends, so the match on the arms is written once. Its shape is the old field’s on purpose — what changed is that the empty case now has a NAME at the seat that decides it, rather than a paragraph at the seat that stored it.