pub struct StorageKeyWithSpace<'a> {
pub key: StorageKey<'a>,
pub space: Space,
}
Fields§
§key: StorageKey<'a>
§space: Space
Implementations§
Source§impl<'a> StorageKeyWithSpace<'a>
impl<'a> StorageKeyWithSpace<'a>
pub fn delta_mpt_padding( snapshot_root: &MerkleHash, intermediate_delta_root: &MerkleHash, ) -> DeltaMptKeyPadding
pub fn from_delta_mpt_key(delta_mpt_key: &'a [u8]) -> StorageKeyWithSpace<'a>
Source§impl<'a> StorageKeyWithSpace<'a>
impl<'a> StorageKeyWithSpace<'a>
pub const ACCOUNT_BYTES: usize = 20usize
pub const EVM_SPACE_TYPE: &'static [u8] = b"\x81"
pub fn to_delta_mpt_key_bytes(&self, padding: &DeltaMptKeyPadding) -> Vec<u8> ⓘ
pub fn to_key_bytes(&self) -> Vec<u8> ⓘ
pub fn from_key_bytes<ShouldCheckInput: StaticBool>(
bytes: &'a [u8],
) -> <FromKeyBytesResult<ShouldCheckInput> as ConditionalReturnValue<'a>>::Outputwhere
FromKeyBytesResult<ShouldCheckInput>: ConditionalReturnValue<'a>,
Trait Implementations§
Source§impl<'a> Clone for StorageKeyWithSpace<'a>
impl<'a> Clone for StorageKeyWithSpace<'a>
Source§fn clone(&self) -> StorageKeyWithSpace<'a>
fn clone(&self) -> StorageKeyWithSpace<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for StorageKeyWithSpace<'a>
impl<'a> Debug for StorageKeyWithSpace<'a>
Source§impl<'a> Hash for StorageKeyWithSpace<'a>
impl<'a> Hash for StorageKeyWithSpace<'a>
Source§impl<'a> PartialEq for StorageKeyWithSpace<'a>
impl<'a> PartialEq for StorageKeyWithSpace<'a>
impl<'a> Copy for StorageKeyWithSpace<'a>
impl<'a> Eq for StorageKeyWithSpace<'a>
impl<'a> StructuralPartialEq for StorageKeyWithSpace<'a>
Auto Trait Implementations§
impl<'a> Freeze for StorageKeyWithSpace<'a>
impl<'a> RefUnwindSafe for StorageKeyWithSpace<'a>
impl<'a> Send for StorageKeyWithSpace<'a>
impl<'a> Sync for StorageKeyWithSpace<'a>
impl<'a> Unpin for StorageKeyWithSpace<'a>
impl<'a> UnwindSafe for StorageKeyWithSpace<'a>
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