pub struct StoryData {
pub containers: Vec<ContainerDef>,
pub line_tables: Vec<ScopeLineTable>,
pub variables: Vec<GlobalVarDef>,
pub list_defs: Vec<ListDef>,
pub list_items: Vec<ListItemDef>,
pub externals: Vec<ExternalFnDef>,
pub addresses: Vec<AddressDef>,
pub address_paths: Vec<AddressPath>,
pub name_table: Vec<String>,
pub list_literals: Vec<ListValue>,
pub source_checksum: u32,
}Expand description
The top-level compiled story: everything the runtime needs to execute.
Fields§
§containers: Vec<ContainerDef>§line_tables: Vec<ScopeLineTable>Per-scope line tables. Each scope (root, knot, stitch) gets one table shared by all containers within that scope.
variables: Vec<GlobalVarDef>§list_defs: Vec<ListDef>§list_items: Vec<ListItemDef>§externals: Vec<ExternalFnDef>§addresses: Vec<AddressDef>Address definitions mapping IDs to byte offsets within containers.
address_paths: Vec<AddressPath>Qualified-path → address-target table. The single source of truth for
Program::find_address;
empty for legacy/converter output (the linker then falls back to
deriving scope paths from container names).
name_table: Vec<String>Interned name strings, indexed by NameId.
list_literals: Vec<ListValue>List literal values referenced by PushList(idx) opcodes.
source_checksum: u32CRC-32 checksum from the .inkb header, used for locale validation.
Zero for stories not loaded from .inkb.
Trait Implementations§
impl StructuralPartialEq for StoryData
Auto Trait Implementations§
impl Freeze for StoryData
impl RefUnwindSafe for StoryData
impl Send for StoryData
impl Sync for StoryData
impl Unpin for StoryData
impl UnsafeUnpin for StoryData
impl UnwindSafe for StoryData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more