pub struct AccountStem {
pub address: Address,
}Expand description
Helper struct for computing account keys.
Fields§
§address: AddressThe account address
Implementations§
Source§impl AccountStem
impl AccountStem
Sourcepub fn basic_data_key(&self) -> TreeKey
pub fn basic_data_key(&self) -> TreeKey
Get the tree key for basic data.
Sourcepub fn code_hash_key(&self) -> TreeKey
pub fn code_hash_key(&self) -> TreeKey
Get the tree key for code hash.
Sourcepub fn storage_key(&self, slot: U256) -> TreeKey
pub fn storage_key(&self, slot: U256) -> TreeKey
Get the tree key for a storage slot.
Sourcepub fn code_chunk_key(&self, chunk_index: u64) -> TreeKey
pub fn code_chunk_key(&self, chunk_index: u64) -> TreeKey
Get the tree key for a code chunk.
Auto Trait Implementations§
impl Freeze for AccountStem
impl RefUnwindSafe for AccountStem
impl Send for AccountStem
impl Sync for AccountStem
impl Unpin for AccountStem
impl UnsafeUnpin for AccountStem
impl UnwindSafe for AccountStem
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more