fuel_tx::field

Trait StorageSlots

source
pub trait StorageSlots {
    // Required methods
    fn storage_slots(&self) -> &Vec<StorageSlot>;
    fn storage_slots_mut(&mut self) -> StorageSlotRef<'_>;
    fn storage_slots_offset_static() -> usize;
    fn storage_slots_offset_at(&self, idx: usize) -> Option<usize>;
}

Required Methods§

source

fn storage_slots(&self) -> &Vec<StorageSlot>

source

fn storage_slots_mut(&mut self) -> StorageSlotRef<'_>

source

fn storage_slots_offset_static() -> usize

source

fn storage_slots_offset_at(&self, idx: usize) -> Option<usize>

Returns the offset to the StorageSlot at idx index, if any.

Object Safety§

This trait is not object safe.

Implementors§