pub trait MappingArrayHandler {
// Required method
fn get_mapping_or_array_value(
&self,
root: DynSolValue,
indices: Vec<DynSolValue>,
snapshot_id: usize,
) -> Result<DynSolValue>;
}Expand description
Handler trait for mapping and array access operations.
Handles indexing operations like mapping[key], array[index], and nested access
like mapping[key1][key2]. Supports both storage-based mappings and in-memory arrays.
Required Methods§
Sourcefn get_mapping_or_array_value(
&self,
root: DynSolValue,
indices: Vec<DynSolValue>,
snapshot_id: usize,
) -> Result<DynSolValue>
fn get_mapping_or_array_value( &self, root: DynSolValue, indices: Vec<DynSolValue>, snapshot_id: usize, ) -> Result<DynSolValue>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".