event_version

Function event_version 

Source
fn event_version(e: &Event) -> u64
Expand description

Extract the version field from any Event variant. Mirrors reducer.rs::extract_version (which is test-only; the prod code path needs its own copy here). When a new variant is added that carries a version, add it here too — the unreachable arm catches future-variant compile errors.