pub struct Adder { /* private fields */ }Expand description
Increments the underlying accumulator value.
Implementations§
Trait Implementations§
Source§impl ContractAmountDispatchables for Adder
impl ContractAmountDispatchables for Adder
Source§impl ContractConstructorDecoder for Adder
impl ContractConstructorDecoder for Adder
Source§impl ContractDispatchableConstructors</// Increments the underlying `accumulator` value.
#[ink(storage)]
pub struct Adder {
/// The `accumulator` to store the value.
accumulator: AccumulatorRef,
}> for Adder
impl ContractDispatchableConstructors</// Increments the underlying `accumulator` value. #[ink(storage)] pub struct Adder { /// The `accumulator` to store the value. accumulator: AccumulatorRef, }> for Adder
Source§impl ContractDispatchableMessages</// Increments the underlying `accumulator` value.
#[ink(storage)]
pub struct Adder {
/// The `accumulator` to store the value.
accumulator: AccumulatorRef,
}> for Adder
impl ContractDispatchableMessages</// Increments the underlying `accumulator` value. #[ink(storage)] pub struct Adder { /// The `accumulator` to store the value. accumulator: AccumulatorRef, }> for Adder
Source§impl ContractEnv for Adder
impl ContractEnv for Adder
Source§type Env = DefaultEnvironment
type Env = DefaultEnvironment
The environment type.
Source§impl ContractMessageDecoder for Adder
impl ContractMessageDecoder for Adder
Source§impl ContractName for Adder
impl ContractName for Adder
Source§impl ContractReference for Adder
impl ContractReference for Adder
Source§impl DispatchableConstructorInfo<2611912030> for Adder
impl DispatchableConstructorInfo<2611912030> for Adder
Source§const CALLABLE: fn(Self::Input) -> Self::Storage = {<{closure@lib.rs:22:9: 26:10} as std::ops::FnOnce<(accumulator::AccumulatorRef,)>>::call_once as fn(<adder::Adder as ink_lang::reflect::DispatchableConstructorInfo<2611912030>>::Input) -> <adder::Adder as ink_lang::reflect::DispatchableConstructorInfo<2611912030>>::Storage}
const CALLABLE: fn(Self::Input) -> Self::Storage = {<{closure@lib.rs:22:9: 26:10} as std::ops::FnOnce<(accumulator::AccumulatorRef,)>>::call_once as fn(<adder::Adder as ink_lang::reflect::DispatchableConstructorInfo<2611912030>>::Input) -> <adder::Adder as ink_lang::reflect::DispatchableConstructorInfo<2611912030>>::Storage}
The closure that can be used to dispatch into the dispatchable ink! constructor.
Source§type Input = AccumulatorRef
type Input = AccumulatorRef
Reflects the input types of the dispatchable ink! constructor.
Source§impl DispatchableMessageInfo<489841055> for Adder
impl DispatchableMessageInfo<489841055> for Adder
Source§const CALLABLE: fn(&mut Self::Storage, Self::Input) -> Self::Output = {<{closure@lib.rs:28:9: 32:10} as std::ops::FnOnce<(&mut adder::Adder, i32)>>::call_once as for<'a> fn(&'a mut <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Storage, <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Input) -> <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Output}
const CALLABLE: fn(&mut Self::Storage, Self::Input) -> Self::Output = {<{closure@lib.rs:28:9: 32:10} as std::ops::FnOnce<(&mut adder::Adder, i32)>>::call_once as for<'a> fn(&'a mut <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Storage, <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Input) -> <adder::Adder as ink_lang::reflect::DispatchableMessageInfo<489841055>>::Output}
The closure that can be used to dispatch into the dispatchable ink! message. 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 SpreadLayout for Adder
impl SpreadLayout for Adder
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 Adder
impl StorageLayout for Adder
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.
Auto Trait Implementations§
impl Freeze for Adder
impl RefUnwindSafe for Adder
impl Send for Adder
impl Sync for Adder
impl Unpin for Adder
impl UnwindSafe for Adder
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