Skip to main content

StepModel

Struct StepModel 

Source
pub struct StepModel {
    pub field: Ident,
    pub ty: Type,
    pub answer: Option<Type>,
    pub awaited: bool,
    pub fan: Option<Fan>,
    pub annotation: Option<Type>,
}
Expand description

ONE STEP of a tower — the field that holds the server, what it answers, and which face it wears.

PLAIN, for the reason every model in this crate has plain fields: the derive today and a manifest front end later reach the same emitter.

Fields§

§field: Ident

The field that holds this step’s server — the step’s ONE name, and the span every refusal about this step is reported at.

§ty: Type

The server’s type, as the field declared it.

§answer: Option<Type>

What this step ANSWERS — the answer = "…" word, and the next step’s question.

None where the word was OMITTED, which is not a gap: the answer is then the step’s own canonical line, <Ty as DefaultServe>::Answer, and the emission spells that projection wherever it would have spelled the written type. A tower’s chain is derived from these and from the tower’s own question either way, so nothing here is a pair that could disagree.

§awaited: bool

Whether this step wore the async word — which is what names the face its hop demands.

§fan: Option<Fan>

THE FAN THIS STEP OPENS, or None where the step is an ordinary 1 → 1 hop.

A step’s POSITION in TowerModel::steps is the segment’s position, and there is no second seat that could disagree with it about where a fan starts. What a segment ENDS at is the tower’s own mouth: the amendment’s law is that every fan folds before it, so the fold is a fact of the walk rather than a word an author writes, and nothing here names one.

§annotation: Option<Type>

⟂ WHAT THIS STEP ANNOTATES THE QUESTION WITH — the annotate(type = "…") word’s type, or None where the step opens no annotation stage.

A SEPARATE SEAT FROM fan, and that separation is the model refusing to lie about itself: Fan is one fan segment, and an annotation neither widens nor crosses. What the two seats share is Stage — the pipeline’s ORDER is the one thing all three words are about — so stage reads whichever seat is filled and the order check reads only that.

A step fills AT MOST ONE of the two. Both written is refused at the front end, where the declaration that wrote them can be pointed at.

Implementations§

Source§

impl StepModel

Source

pub fn stage(&self) -> Option<Stage>

WHICH STAGE THIS STEP OPENS, or None where it opens none and is an ordinary hop.

The ONE reader of both segment seats, which is what keeps the order law a single comparison over a single roster however many words open a stage.

Trait Implementations§

Source§

impl Clone for StepModel

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 StepModel

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.