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§
fn storage_slots(&self) -> &Vec<StorageSlot>
fn storage_slots_mut(&mut self) -> StorageSlotRef<'_>
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.
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.