Trait fuel_tx::field::StorageSlots
source · pub trait StorageSlots {
// Required methods
fn storage_slots(&self) -> &Vec<StorageSlot>;
fn storage_slots_mut(&mut self) -> &mut Vec<StorageSlot>;
fn storage_slots_offset_static() -> usize;
fn storage_slots_offset_at(&self, idx: usize) -> Option<usize>;
// Provided method
fn storage_slots_offset(&self) -> usize { ... }
}
Required Methods§
fn storage_slots(&self) -> &Vec<StorageSlot>
fn storage_slots_mut(&mut self) -> &mut Vec<StorageSlot>
fn storage_slots_offset_static() -> usize
sourcefn storage_slots_offset_at(&self, idx: usize) -> Option<usize>
fn storage_slots_offset_at(&self, idx: usize) -> Option<usize>
Returns the offset to the StorageSlot
at idx
index, if any.