pub fn for_each_event_dimension(
sender: SuiAddress,
effects: &TransactionEffects,
events: Option<&TransactionEvents>,
f: impl FnMut(u32, IndexDimension, &[u8]),
)Expand description
Visit all event-space dimensions for a transaction.
The callback is invoked as f(event_idx, dimension, key) once per logical
event-space dimension candidate, where key is the encoded value bytes
for that dimension (the lookup key, without the dimension’s tag byte
prefix).
Like for_each_transaction_dimension, this keeps the ownership boundary
inside the visitor call so compound event keys can borrow a reused scratch
buffer while the caller consumes each value synchronously.
Every real event also yields one IndexDimension::EventExtant candidate
(a singleton existence marker keyed by a placeholder byte) at its own
event_idx.