pub enum Seat {
Arg,
FinishArg,
With(Option<Ident>),
Set(Option<Ident>),
}Expand description
WHICH call a field’s value reaches, and under what name.
Variants§
Arg
arg — a positional argument to the entry.
FinishArg
finish_arg — a positional argument to the finish.
With(Option<Ident>)
with / with = "…" — a CONSUMING link, with_<field> unless the word renamed it.
Set(Option<Ident>)
set / set = "…" — an IN-PLACE setter, set_<field> unless the word renamed it.
bon has no equivalent and this vocabulary does, because the types being described are real:
an upstream that grew &mut setters before it grew a builder is the ordinary case, and a
grammar that could not name one would send it to the whole-body escape over punctuation.
Implementations§
Source§impl Seat
impl Seat
Sourcepub fn filled(&self, column: &Ident) -> Filled
pub fn filled(&self, column: &Ident) -> Filled
This seat with its name resolved against the column that fills it.
The two default names are the options family’s own — with_<column> and set_<column> —
read off Member rather than pasted here, so the names this writer
spells are the names the framework’s own family would have minted.