Skip to main content

Build

Struct Build 

Source
pub struct Build {
    pub at: Option<Path>,
    pub seat: Option<Seat>,
    pub cross: Option<Cross>,
    pub option: bool,
    pub skip: bool,
}
Expand description

What ONE field says about its own place in the protocol.

Every part of it is an override: a field writing nothing at all takes the seat the default law gives it, crosses by the bridge, and is fed back like every other column.

Fields§

§at: Option<Path>

The builder(…) block’s own path on this field, kept for the span its refusals report at.

§seat: Option<Seat>

Which seat this field fills, or None for the one the default law gives it.

§cross: Option<Cross>

How the value crosses, or None for the bridge with its target inferred.

§option: bool

option — the seat takes the Option WHOLE, and the crossing happens inside it.

The gap it closes is Into’s own: Option<A> does not convert into Option<B> however well A converts into B, std lifting no conversion through the type. So a manifest column restated as Option<u16> whose remote seat is Option<Depth> cannot cross at all by default — and this word says cross the item and hand the seat the option, which is the conversion an author would have written by hand.

§skip: bool

skip — this column is NOT fed back into the construction.

§The round trip becomes the AUTHOR’s assertion, and that is the whole cost of the word

Every other column is read out through an accessor and handed back to the constructor, so the value that comes out of a row is the value that went in. A skipped one is read out and never handed back: what fills it on the way in is whatever the remote’s own constructor puts there. Where those agree the round trip holds and the word costs nothing; where they do not, the word is a declaration that the difference does not matter — which is a claim about the domain that no compiler can check and every reader of the declaration is entitled to see justified.

Trait Implementations§

Source§

impl Clone for Build

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 Build

Source§

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

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

impl Default for Build

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Build

Source§

impl PartialEq for Build

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 Build

Auto Trait Implementations§

§

impl !Send for Build

§

impl !Sync for Build

§

impl Freeze for Build

§

impl RefUnwindSafe for Build

§

impl Unpin for Build

§

impl UnsafeUnpin for Build

§

impl UnwindSafe for Build

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.