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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§