pub struct getStorageSlotReturn {
pub slot: U256,
pub offset: U256,
pub numberOfBytes: U256,
}Expand description
Returns the storage location of the specified variable: its base slot, the byte offset of the value within that slot, and its size in bytes, as given by the storage layout.
variableName is the variable’s name, or <namespace>.<field> for a field of an ERC-7201
namespace. Works for every storage encoding. For mappings and dynamic arrays the returned
slot is the base slot used to derive the location of their entries.
Container type for the return parameters of the getStorageSlot(address,string) function.
Fields§
§slot: U256§offset: U256§numberOfBytes: U256Implementations§
Source§impl getStorageSlotReturn
impl getStorageSlotReturn
fn _tokenize(&self) -> <getStorageSlotCall as SolCall>::ReturnToken<'_>
Trait Implementations§
Source§impl Clone for getStorageSlotReturn
impl Clone for getStorageSlotReturn
Auto Trait Implementations§
impl Freeze for getStorageSlotReturn
impl RefUnwindSafe for getStorageSlotReturn
impl Send for getStorageSlotReturn
impl Sync for getStorageSlotReturn
impl Unpin for getStorageSlotReturn
impl UnsafeUnpin for getStorageSlotReturn
impl UnwindSafe for getStorageSlotReturn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes