open_entry_bindings/block_info.rs
1use std::collections::HashMap;
2
3pub enum UnlockInfo {
4 Current,
5 Addr(u64)
6}
7
8pub struct BlockInfo(HashMap<u64, UnlockInfo>);
9
10impl BlockInfo {
11 #[inline(always)] pub fn get(&self, inst: u64) -> Option<&UnlockInfo> {
12 unsafe { crate::BlockInfo__get.unwrap_unchecked()(self, inst) }
13 }
14}