pub struct AdderRef { /* private fields */ }Expand description
Increments the underlying accumulator value.
Implementations§
Source§impl AdderRef
impl AdderRef
Sourcepub fn new(
__ink_binding_0: AccumulatorRef,
) -> CreateBuilder<<Adder as ContractEnv>::Env, Unset<<<Adder as ContractEnv>::Env as Environment>::Hash>, Unset<u64>, Unset<<<Adder as ContractEnv>::Env as Environment>::Balance>, Set<ExecutionInput<ArgumentList<Argument<AccumulatorRef>, EmptyArgumentList>>>, Unset<Salt>, Self>
pub fn new( __ink_binding_0: AccumulatorRef, ) -> CreateBuilder<<Adder as ContractEnv>::Env, Unset<<<Adder as ContractEnv>::Env as Environment>::Hash>, Unset<u64>, Unset<<<Adder as ContractEnv>::Env as Environment>::Balance>, Set<ExecutionInput<ArgumentList<Argument<AccumulatorRef>, EmptyArgumentList>>>, Unset<Salt>, Self>
Creates a new adder from the given accumulator.
Trait Implementations§
Source§impl ContractEnv for AdderRef
impl ContractEnv for AdderRef
Source§impl Decode for AdderRef
impl Decode for AdderRef
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for AdderRef
impl Encode for AdderRef
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl FromAccountId<<Adder as ContractEnv>::Env> for AdderRef
impl FromAccountId<<Adder as ContractEnv>::Env> for AdderRef
Source§fn from_account_id(
account_id: <<Adder as ContractEnv>::Env as Environment>::AccountId,
) -> Self
fn from_account_id( account_id: <<Adder as ContractEnv>::Env as Environment>::AccountId, ) -> Self
Creates the contract instance from the account ID of the already instantiated contract.
Source§impl PackedLayout for AdderRef
impl PackedLayout for AdderRef
Source§fn pull_packed(&mut self, __key: &Key)
fn pull_packed(&mut self, __key: &Key)
Indicates to
self that is has just been pulled from the storage. Read moreSource§fn push_packed(&self, __key: &Key)
fn push_packed(&self, __key: &Key)
Indicates to
self that it is about to be pushed to contract storage. Read moreSource§fn clear_packed(&self, __key: &Key)
fn clear_packed(&self, __key: &Key)
Indicates to
self that it is about to be cleared from contract storage. Read moreSource§impl SpreadLayout for AdderRef
impl SpreadLayout for AdderRef
Source§const REQUIRES_DEEP_CLEAN_UP: bool = false
const REQUIRES_DEEP_CLEAN_UP: bool = false
Indicates whether a type requires deep clean-up of its state meaning that
a clean-up routine has to decode an entity into an instance in order to
eventually recurse upon its tear-down.
This is not required for the majority of primitive data types such as
i32,
however types such as storage::Box that might want to forward the clean-up
procedure to their inner T require a deep clean-up. Read moreSource§fn pull_spread(__key_ptr: &mut KeyPtr) -> Self
fn pull_spread(__key_ptr: &mut KeyPtr) -> Self
Pulls an instance of
Self from the contract storage. Read moreSource§fn push_spread(&self, __key_ptr: &mut KeyPtr)
fn push_spread(&self, __key_ptr: &mut KeyPtr)
Pushes an instance of
Self to the contract storage. Read moreSource§fn clear_spread(&self, __key_ptr: &mut KeyPtr)
fn clear_spread(&self, __key_ptr: &mut KeyPtr)
Clears an instance of
Self from the contract storage. Read moreSource§impl StorageLayout for AdderRef
impl StorageLayout for AdderRef
Source§impl ToAccountId<<Adder as ContractEnv>::Env> for AdderRef
impl ToAccountId<<Adder as ContractEnv>::Env> for AdderRef
Source§fn to_account_id(
&self,
) -> <<Adder as ContractEnv>::Env as Environment>::AccountId
fn to_account_id( &self, ) -> <<Adder as ContractEnv>::Env as Environment>::AccountId
Returns the underlying account identifier of the instantiated contract.
Source§impl TraitCallBuilder for AdderRef
impl TraitCallBuilder for AdderRef
impl EncodeLike for AdderRef
impl Eq for AdderRef
impl StructuralPartialEq for AdderRef
Auto Trait Implementations§
impl Freeze for AdderRef
impl RefUnwindSafe for AdderRef
impl Send for AdderRef
impl Sync for AdderRef
impl Unpin for AdderRef
impl UnwindSafe for AdderRef
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