pub trait SnapshotAccess {
// Required methods
fn read_field(&self, field: FieldId) -> Option<&[f32]>;
fn tick_id(&self) -> TickId;
fn world_generation_id(&self) -> WorldGenerationId;
fn parameter_version(&self) -> ParameterVersion;
}Expand description
Read-only access to a published snapshot.
This trait decouples observation extraction (ObsPlan) from the
arena implementation. ObsPlan reads through &dyn SnapshotAccess
rather than referencing ReadArena directly (Decision N).
Required Methods§
Sourcefn read_field(&self, field: FieldId) -> Option<&[f32]>
fn read_field(&self, field: FieldId) -> Option<&[f32]>
Read field data from the snapshot.
Returns None if the field ID is invalid or not present.
Sourcefn world_generation_id(&self) -> WorldGenerationId
fn world_generation_id(&self) -> WorldGenerationId
The arena generation of this snapshot.
Sourcefn parameter_version(&self) -> ParameterVersion
fn parameter_version(&self) -> ParameterVersion
The parameter version at the time of this snapshot.