Skip to main content

EffectRowEntry

Struct EffectRowEntry 

Source
pub struct EffectRowEntry {
    pub def: DefinitionId,
    pub is_entry: bool,
    pub direct: DirectEffects,
    pub dispatches: Vec<DispatchEntry>,
}
Expand description

One entry in the EffectRows DefinitionId → row table (T2-3, docs/effects-spec.md §11, docs/format-v4-rfc.md §2 EffectRows reservation): a factored effect row for one definition.

Every knot/stitch ships one — the per-container row is the host’s resume-scheduling estimate (docs/effects-spec.md §12.1: a flow resumes from wherever it parked). The row is additive metadata; the runtime does not consume it yet (sleep/narrowing are the future clients), so a story carrying rows is byte-identical in behavior to one without.

Fields§

§def: DefinitionId

The definition (knot/stitch) this row summarizes.

§is_entry: bool

The freeze bit (#882, docs/effects-spec.md §10 sitting-2 ruling; corroborated on main by docs/modules-spec.md §4 boundary rule 1/2 and the 2026-07-14 “Modules & visibility rulings” decision-log entry — docs/effects-spec.md itself never merged past docs/effects-skeleton).

true for every def by default: the row is a legitimate host entry point (host-callable by path/name — begin_function_eval, entry lookup, play-from-here). false for a #@private definition: not an entry — host-facing name lookup on it is refused (the load-error class effects-spec §10 rules) — but the row itself is not dropped from the table. #@private hides the name, not the cell: a private knot/stitch can still be captured as a first-class fn-value token that a public path holds and later calls through, and the dispatch-narrowing machinery (§7) resolves such a token by DefinitionId, not by name — so the row must stay resolvable in this table regardless of is_entry. This is unconditional (never a reachability computation over whether some public path actually holds such a token today): proving that would need whole-program fn-value capture analysis, which conservative-total rows do not attempt. Dev-tooling (play-from-here, brink ide effects-diff) is the documented visibility override (modules-spec §4 rule 3) and may read a non-entry row directly from this table; only host semantic lookup respects is_entry.

§direct: DirectEffects

The direct part — atoms independent of dispatch narrowing.

§dispatches: Vec<DispatchEntry>

Per-dispatch entries (empty in v1).

Trait Implementations§

Source§

impl Clone for EffectRowEntry

Source§

fn clone(&self) -> EffectRowEntry

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 EffectRowEntry

Source§

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

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

impl Eq for EffectRowEntry

Source§

impl PartialEq for EffectRowEntry

Source§

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

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, <T as TryFrom<U>>::Error>

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.