pub struct InterimContractChange { /* private fields */ }Implementations§
Source§impl InterimContractChange
impl InterimContractChange
pub fn new(address: &[u8], creation: bool) -> Self
pub fn upsert_slot(&mut self, change: &StorageChange)
pub fn set_balance(&mut self, new_balance: &[u8])
pub fn set_code(&mut self, code: &[u8])
pub fn upsert_token_balance(&mut self, token: &[u8], balance: &[u8])
pub fn upsert_token_balances(&mut self, balances: &HashMap<Vec<u8>, Vec<u8>>)
Trait Implementations§
Source§impl Clone for InterimContractChange
impl Clone for InterimContractChange
Source§fn clone(&self) -> InterimContractChange
fn clone(&self) -> InterimContractChange
Returns a duplicate 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 Debug for InterimContractChange
impl Debug for InterimContractChange
Source§impl From<InterimContractChange> for Option<ContractChange>
impl From<InterimContractChange> for Option<ContractChange>
Source§fn from(value: InterimContractChange) -> Self
fn from(value: InterimContractChange) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterimContractChange
impl RefUnwindSafe for InterimContractChange
impl Send for InterimContractChange
impl Sync for InterimContractChange
impl Unpin for InterimContractChange
impl UnwindSafe for InterimContractChange
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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