pub fn read_map_with<K, V, W, FK, FV>(
state: &ContractState<InMemoryDB>,
executable: &IrExecutable<W>,
index: usize,
field: &str,
project_k: FK,
project_v: FV,
) -> Result<CompactMap<K, V>, ContractRuntimeError>where
K: Ord,
W: Witnesses,
FK: FnMut(RuntimeValue) -> Result<K, ValueProjectionError>,
FV: FnMut(RuntimeValue) -> Result<V, ValueProjectionError>,Expand description
Read a Map<K, V> ledger field at index with custom key/value projectors.