pub struct DispatchEntry {
pub cell: DefinitionId,
pub narrowable: bool,
pub fallback: DirectEffects,
}Expand description
A per-dispatch entry in a factored effect row (docs/effects-spec.md §7):
the row a call through a dispatch cell contributes, whether that dispatch
is runtime-narrowable (its cell is not in the entry’s own write set),
and the static fallback row used when narrowing does not apply.
v1 emits none of these (call-through-value is inferred as opaque, folded into the direct part) — but the encoding ships the structure now, because a flat row structurally forecloses the §7 narrowing the host will do at schedule-commit. The reader round-trips a populated dispatch list so writer and reader stay paired (the #742 lesson).
Fields§
§cell: DefinitionIdThe dispatch cell whose live fn tokens the host may narrow against.
narrowable: boolWhether this dispatch is statically narrowable (docs/effects-spec.md
§7 soundness gate: the cell is not in the entry’s own write set).
fallback: DirectEffectsThe static fallback row — the conservative join used when the host does not (or cannot) narrow.
Trait Implementations§
Source§impl Clone for DispatchEntry
impl Clone for DispatchEntry
Source§fn clone(&self) -> DispatchEntry
fn clone(&self) -> DispatchEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more