Skip to main content

FrameShapeDef

Struct FrameShapeDef 

Source
pub struct FrameShapeDef {
    pub site: DefinitionId,
    pub slots: Vec<NameId>,
}
Expand description

The name-keyed frame shape for one await site (docs/flow-suspension-spec.md §4/§11): the static description of which locals cross the park at that site, so the runtime knows what to spill on park and restore on wake.

Emitted into the FrameShapes StoryData section (.inkb tag 0x10, .inkt (frame_shapes …)). The shape is name-keyed — the runtime spills/restores crossing locals by name, riding the same rehydration machinery as #@was/saves (spec §7), so a frame survives recompiles without instruction offsets (spec §2/§3).

Reserved-through-fence: the FS-3c compiler slice lands this section’s encoding (writer + reader + round-trips) but does not yet emit a non-empty table — the E052 await lowering fence keeps await from producing any StoryData. First emission rides the continuation-splitting codegen when the fence drops (FS-3r), the same reserved-then-materialized discipline StructShapes followed. frame_shapes is therefore empty for every story compiled today (and for all converter output).

Fields§

§site: DefinitionId

The await site’s stable identity — the DefinitionId of the synthesized resume/continuation container (spec §11.1: stable identity = module + enclosing def + site index). This is both the wake-policy site id and the container the runtime enters from its top on resume.

§slots: Vec<NameId>

The name-keyed crossing locals, in stable declared order (spec §4). Each entry is the local’s interned NameId (into the story’s name_table); the runtime’s frame record is keyed by these names. Values are not stored here — the shape is static; the live values live in the save-time SuspendedFlow.frame (docs/flow-suspension-spec.md §2, FS-1).

Trait Implementations§

Source§

impl Clone for FrameShapeDef

Source§

fn clone(&self) -> FrameShapeDef

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 FrameShapeDef

Source§

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

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

impl Eq for FrameShapeDef

Source§

impl PartialEq for FrameShapeDef

Source§

fn eq(&self, other: &FrameShapeDef) -> 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 FrameShapeDef

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.