pub fn field_at(
state: &ContractState<InMemoryDB>,
index: usize,
) -> Result<StateValue<InMemoryDB>>Expand description
Pull the cell at index from the contract’s root state array.
Pure-compute helper used by codegen-emitted ledger views: the
caller hands in a ContractState already fetched from the indexer
(or built locally), and this returns a clone of the inline
StateValue at that index.