Skip to main content

Seat

Enum Seat 

Source
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

Source

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.

Trait Implementations§

Source§

impl Clone for Seat

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Seat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Seat

Source§

impl PartialEq for Seat

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Seat

Auto Trait Implementations§

§

impl !Send for Seat

§

impl !Sync for Seat

§

impl Freeze for Seat

§

impl RefUnwindSafe for Seat

§

impl Unpin for Seat

§

impl UnsafeUnpin for Seat

§

impl UnwindSafe for Seat

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.