Struct ink::ValueReturned
source · pub struct ValueReturned;
Expand description
Represents some abstract value that is returned by a function. Currently acts as a placeholder.
-Trait Implementations§
source§impl<T, E> Output<false, false, T, E> for ValueReturned
impl<T, E> Output<false, false, T, E> for ValueReturned
type ReturnType = T
source§impl<T, E> Output<false, true, T, E> for ValueReturned
impl<T, E> Output<false, true, T, E> for ValueReturned
type ReturnType = Result<T, E>
source§impl<T, E> Output<true, false, T, E> for ValueReturned
impl<T, E> Output<true, false, T, E> for ValueReturned
type ReturnType = T
source§impl<T, E> Output<true, true, T, E> for ValueReturned
impl<T, E> Output<true, true, T, E> for ValueReturned
type ReturnType = T
Auto Trait Implementations§
impl RefUnwindSafe for ValueReturned
impl Send for ValueReturned
impl Sync for ValueReturned
impl Unpin for ValueReturned
impl UnwindSafe for ValueReturned
Blanket Implementations§
Trait Implementations§
source§impl<T, E> Output<false, false, T, E> for ValueReturned
impl<T, E> Output<false, false, T, E> for ValueReturned
type ReturnType = T
source§impl<T, E> Output<false, true, T, E> for ValueReturned
impl<T, E> Output<false, true, T, E> for ValueReturned
type ReturnType = Result<T, E>
source§impl<T, E> Output<true, false, T, E> for ValueReturned
impl<T, E> Output<true, false, T, E> for ValueReturned
type ReturnType = T
source§impl<T, E> Output<true, true, T, E> for ValueReturned
impl<T, E> Output<true, true, T, E> for ValueReturned
type ReturnType = T
Auto Trait Implementations§
impl RefUnwindSafe for ValueReturned
impl Send for ValueReturned
impl Sync for ValueReturned
impl Unpin for ValueReturned
impl UnwindSafe for ValueReturned
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
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/ink_codegen/fn.generate_code.html b/ink_codegen/fn.generate_code.html index 0f3750de1ec..a0ef3736842 100644 --- a/ink_codegen/fn.generate_code.html +++ b/ink_codegen/fn.generate_code.html @@ -1,3 +1,3 @@ -Function ink_codegen::generate_code
source · pub fn generate_code<T>(entity: T) -> TokenStreamwhere
+generate_code in ink_codegen - Rust Function ink_codegen::generate_code
source · pub fn generate_code<T>(entity: T) -> TokenStreamwhere
T: CodeGenerator,
Expand description
Generates the entire code for the given ink! contract.
\ No newline at end of file
diff --git a/ink_codegen/fn.generate_type_spec.html b/ink_codegen/fn.generate_type_spec.html
index 2daaa892c9a..0280d2131f3 100644
--- a/ink_codegen/fn.generate_type_spec.html
+++ b/ink_codegen/fn.generate_type_spec.html
@@ -1,2 +1,2 @@
-generate_type_spec in ink_codegen - Rust Function ink_codegen::generate_type_spec
source · pub fn generate_type_spec(ty: &Type) -> TokenStream
Expand description
Generates the ink! metadata for the given type.
+generate_type_spec in ink_codegen - Rust Function ink_codegen::generate_type_spec
source · pub fn generate_type_spec(ty: &Type) -> TokenStream
Expand description
Generates the ink! metadata for the given type.
\ No newline at end of file
diff --git a/ink_e2e/enum.AccountKeyring.html b/ink_e2e/enum.AccountKeyring.html
index 8fe819cf1e3..7132d899993 100644
--- a/ink_e2e/enum.AccountKeyring.html
+++ b/ink_e2e/enum.AccountKeyring.html
@@ -1,4 +1,4 @@
-AccountKeyring in ink_e2e - Rust Enum ink_e2e::AccountKeyring
pub enum AccountKeyring {
+AccountKeyring in ink_e2e - Rust Enum ink_e2e::AccountKeyring
pub enum AccountKeyring {
Show 14 variants
Alice,
Bob,
Charlie,
@@ -24,7 +24,7 @@
self
) -> CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>
pub fn to_seed(self) -> String
pub fn numeric_id(idx: usize) -> AccountId32
Get account id of a numeric
account.
-
Trait Implementations§
Trait Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/enum.PolkadotConfig.html b/ink_e2e/enum.PolkadotConfig.html
index a5e55a4fdf9..5faf47f887a 100644
--- a/ink_e2e/enum.PolkadotConfig.html
+++ b/ink_e2e/enum.PolkadotConfig.html
@@ -1,4 +1,4 @@
-PolkadotConfig in ink_e2e - Rust Enum ink_e2e::PolkadotConfig
pub enum PolkadotConfig {}
Expand description
Default set of commonly used types by Polkadot nodes.
+PolkadotConfig in ink_e2e - Rust Enum ink_e2e::PolkadotConfig
pub enum PolkadotConfig {}
Expand description
Default set of commonly used types by Polkadot nodes.
Trait Implementations§
§impl Config for PolkadotConfig
§type Address = MultiAddress<<PolkadotConfig as Config>::AccountId, ()>
The address type.§type Hasher = <SubstrateConfig as Config>::Hasher
The hashing system (algorithm) being used in the runtime (e.g. Blake2).§type ExtrinsicParams = AnyOf<PolkadotConfig, (CheckSpecVersion, CheckTxVersion, CheckNonce, CheckGenesis<PolkadotConfig>, CheckMortality<PolkadotConfig>, ChargeAssetTxPayment<PolkadotConfig>, ChargeTransactionPayment)>
This type defines the extrinsic extra and additional parameters.Auto Trait Implementations§
§impl RefUnwindSafe for PolkadotConfig
§impl Send for PolkadotConfig
§impl Sync for PolkadotConfig
§impl Unpin for PolkadotConfig
§impl UnwindSafe for PolkadotConfig
Blanket Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/events/struct.CodeStoredEvent.html b/ink_e2e/events/struct.CodeStoredEvent.html
index 477ee42d79e..524b7381df8 100644
--- a/ink_e2e/events/struct.CodeStoredEvent.html
+++ b/ink_e2e/events/struct.CodeStoredEvent.html
@@ -1,4 +1,4 @@
-CodeStoredEvent in ink_e2e::events - Rust Struct ink_e2e::events::CodeStoredEvent
source · pub struct CodeStoredEvent<E: Environment> {
+CodeStoredEvent in ink_e2e::events - Rust Struct ink_e2e::events::CodeStoredEvent
source · pub struct CodeStoredEvent<E: Environment> {
pub code_hash: E::Hash,
}
Expand description
Code with the specified hash has been stored.
Fields§
§code_hash: E::Hash
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/events/struct.ContractEmitted.html b/ink_e2e/events/struct.ContractEmitted.html
index cb89d2b8ae9..faab9b8be00 100644
--- a/ink_e2e/events/struct.ContractEmitted.html
+++ b/ink_e2e/events/struct.ContractEmitted.html
@@ -1,4 +1,4 @@
-ContractEmitted in ink_e2e::events - Rust Struct ink_e2e::events::ContractEmitted
source · pub struct ContractEmitted<E: Environment> {
+ContractEmitted in ink_e2e::events - Rust Struct ink_e2e::events::ContractEmitted
source · pub struct ContractEmitted<E: Environment> {
pub contract: E::AccountId,
pub data: Vec<u8>,
}
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/events/struct.ContractInstantiatedEvent.html b/ink_e2e/events/struct.ContractInstantiatedEvent.html
index e13162fa411..2bb84c8f840 100644
--- a/ink_e2e/events/struct.ContractInstantiatedEvent.html
+++ b/ink_e2e/events/struct.ContractInstantiatedEvent.html
@@ -1,4 +1,4 @@
-ContractInstantiatedEvent in ink_e2e::events - Rust Struct ink_e2e::events::ContractInstantiatedEvent
source · pub struct ContractInstantiatedEvent<E: Environment> {
+ContractInstantiatedEvent in ink_e2e::events - Rust Struct ink_e2e::events::ContractInstantiatedEvent
source · pub struct ContractInstantiatedEvent<E: Environment> {
pub deployer: E::AccountId,
pub contract: E::AccountId,
}
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/events/struct.EventWithTopics.html b/ink_e2e/events/struct.EventWithTopics.html
index 8ba614e205e..945432c72e5 100644
--- a/ink_e2e/events/struct.EventWithTopics.html
+++ b/ink_e2e/events/struct.EventWithTopics.html
@@ -1,4 +1,4 @@
-EventWithTopics in ink_e2e::events - Rust Struct ink_e2e::events::EventWithTopics
source · pub struct EventWithTopics<T> {
+EventWithTopics in ink_e2e::events - Rust Struct ink_e2e::events::EventWithTopics
source · pub struct EventWithTopics<T> {
pub topics: Vec<H256>,
pub event: T,
}
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/sr25519/enum.Error.html b/ink_e2e/sr25519/enum.Error.html
index 4e9aeda53d6..04a4887b143 100644
--- a/ink_e2e/sr25519/enum.Error.html
+++ b/ink_e2e/sr25519/enum.Error.html
@@ -1,4 +1,4 @@
-Error in ink_e2e::sr25519 - Rust pub enum Error {
+Error in ink_e2e::sr25519 - Rust
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/sr25519/struct.Keypair.html b/ink_e2e/sr25519/struct.Keypair.html
index 7674530f414..23c808218c8 100644
--- a/ink_e2e/sr25519/struct.Keypair.html
+++ b/ink_e2e/sr25519/struct.Keypair.html
@@ -1,4 +1,4 @@
-Keypair in ink_e2e::sr25519 - Rust pub struct Keypair(/* private fields */);
Expand description
An sr25519 keypair implementation. While the API is slightly different, the logic for
+
Keypair in ink_e2e::sr25519 - Rust pub struct Keypair(/* private fields */);
Expand description
An sr25519 keypair implementation. While the API is slightly different, the logic for
this has been taken from sp_core::sr25519
and we test against this to ensure conformity.
Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/sr25519/struct.PublicKey.html b/ink_e2e/sr25519/struct.PublicKey.html
index 66d2a817c8c..119109ee620 100644
--- a/ink_e2e/sr25519/struct.PublicKey.html
+++ b/ink_e2e/sr25519/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in ink_e2e::sr25519 - Rust pub struct PublicKey(pub [u8; 32]);
Expand description
The public key for an Keypair
key pair. This is equivalent to a
+
PublicKey in ink_e2e::sr25519 - Rust pub struct PublicKey(pub [u8; 32]);
Expand description
The public key for an Keypair
key pair. This is equivalent to a
Substrate AccountId32
.
Tuple Fields§
§0: [u8; 32]
Implementations§
§impl PublicKey
pub fn to_account_id(self) -> AccountId32
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/sr25519/struct.Signature.html b/ink_e2e/sr25519/struct.Signature.html
index 7cd7f816f32..34f16d8ff0a 100644
--- a/ink_e2e/sr25519/struct.Signature.html
+++ b/ink_e2e/sr25519/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in ink_e2e::sr25519 - Rust pub struct Signature(pub [u8; 64]);
Expand description
A signature generated by Keypair::sign()
. These bytes are equivalent
+
Signature in ink_e2e::sr25519 - Rust pub struct Signature(pub [u8; 64]);
Expand description
A signature generated by Keypair::sign()
. These bytes are equivalent
to a Substrate MultiSignature::sr25519(bytes)
.
Tuple Fields§
§0: [u8; 64]
Trait Implementations§
§impl PartialEq for Signature
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.CallBuilder.html b/ink_e2e/struct.CallBuilder.html
index 4c70bba7f57..884244e883a 100644
--- a/ink_e2e/struct.CallBuilder.html
+++ b/ink_e2e/struct.CallBuilder.html
@@ -1,4 +1,4 @@
-CallBuilder in ink_e2e - Rust Struct ink_e2e::CallBuilder
source · pub struct CallBuilder<'a, E, Args, RetType, B>where
+CallBuilder in ink_e2e - Rust
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.CallDryRunResult.html b/ink_e2e/struct.CallDryRunResult.html
index 454ef99a944..52a626dc5d5 100644
--- a/ink_e2e/struct.CallDryRunResult.html
+++ b/ink_e2e/struct.CallDryRunResult.html
@@ -1,4 +1,4 @@
-CallDryRunResult in ink_e2e - Rust Struct ink_e2e::CallDryRunResult
source · pub struct CallDryRunResult<E: Environment, V> {
+CallDryRunResult in ink_e2e - Rust Struct ink_e2e::CallDryRunResult
source · pub struct CallDryRunResult<E: Environment, V> {
pub exec_result: ContractExecResult<E::Balance, ()>,
pub _marker: PhantomData<V>,
}
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.CallResult.html b/ink_e2e/struct.CallResult.html
index d7f7595e265..dcb33a4109c 100644
--- a/ink_e2e/struct.CallResult.html
+++ b/ink_e2e/struct.CallResult.html
@@ -1,4 +1,4 @@
-CallResult in ink_e2e - Rust Struct ink_e2e::CallResult
source · pub struct CallResult<E: Environment, V, EventLog> {
+CallResult in ink_e2e - Rust Struct ink_e2e::CallResult
source · pub struct CallResult<E: Environment, V, EventLog> {
pub dry_run: CallDryRunResult<E, V>,
pub events: EventLog,
}
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.Client.html b/ink_e2e/struct.Client.html
index 160e6cb80ae..c0397f1ba49 100644
--- a/ink_e2e/struct.Client.html
+++ b/ink_e2e/struct.Client.html
@@ -1,4 +1,4 @@
-Client in ink_e2e - Rust pub struct Client<C, E>where
+Client in ink_e2e - Rust pub struct Client<C, E>where
C: Config,
E: Environment,{ /* private fields */ }
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.DefaultSandbox.html b/ink_e2e/struct.DefaultSandbox.html
index f2308161f05..cde24e9d723 100644
--- a/ink_e2e/struct.DefaultSandbox.html
+++ b/ink_e2e/struct.DefaultSandbox.html
@@ -1,4 +1,4 @@
-DefaultSandbox in ink_e2e - Rust Struct ink_e2e::DefaultSandbox
pub struct DefaultSandbox { /* private fields */ }
Trait Implementations§
§impl Default for DefaultSandbox
§fn default() -> DefaultSandbox
Returns the “default value” for a type. Read more§impl Sandbox for DefaultSandbox
§fn execute_with<T>(&mut self, execute: impl FnOnce() -> T) -> T
Execute the given externalities.§fn dry_run<T>(&mut self, action: impl FnOnce(&mut DefaultSandbox) -> T) -> T
Dry run an action without modifying the storage.§fn register_extension<E>(&mut self, ext: E)where
+DefaultSandbox in ink_e2e - Rust Struct ink_e2e::DefaultSandbox
pub struct DefaultSandbox { /* private fields */ }
Trait Implementations§
§impl Default for DefaultSandbox
§fn default() -> DefaultSandbox
Returns the “default value” for a type. Read more§impl Sandbox for DefaultSandbox
§fn execute_with<T>(&mut self, execute: impl FnOnce() -> T) -> T
Execute the given externalities.§fn dry_run<T>(&mut self, action: impl FnOnce(&mut DefaultSandbox) -> T) -> T
Dry run an action without modifying the storage.§fn register_extension<E>(&mut self, ext: E)where
E: Any + Extension,
Register an extension.§fn initialize_block(
height: <<<<DefaultSandbox as Sandbox>::Runtime as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
parent_hash: <<DefaultSandbox as Sandbox>::Runtime as Config>::Hash
@@ -84,7 +84,14 @@
U: From<T>,
§impl<T, U> IntoKey<U> for Twhere
+
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.H256.html b/ink_e2e/struct.H256.html
index b1c000a4fab..72fffad5018 100644
--- a/ink_e2e/struct.H256.html
+++ b/ink_e2e/struct.H256.html
@@ -1,4 +1,4 @@
-H256 in ink_e2e - Rust #[repr(C)]pub struct H256(pub [u8; 32]);
Expand description
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
+H256 in ink_e2e - Rust #[repr(C)]pub struct H256(pub [u8; 32]);
Expand description
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
Tuple Fields§
§0: [u8; 32]
Implementations§
§impl H256
pub const fn repeat_byte(byte: u8) -> H256
Returns a new fixed hash where all bits are set to the given byte.
Trait Implementations§
§impl<'r> BitAndAssign<&'r H256> for H256
§fn bitand_assign(&mut self, rhs: &'r H256)
Performs the &=
operation. Read more§impl BitAndAssign for H256
§fn bitand_assign(&mut self, rhs: H256)
Performs the &=
operation. Read more§impl<'r> BitOrAssign<&'r H256> for H256
§fn bitor_assign(&mut self, rhs: &'r H256)
Performs the |=
operation. Read more§impl BitOrAssign for H256
§fn bitor_assign(&mut self, rhs: H256)
Performs the |=
operation. Read more§impl<'r> BitXorAssign<&'r H256> for H256
§fn bitxor_assign(&mut self, rhs: &'r H256)
Performs the ^=
operation. Read more§impl BitXorAssign for H256
§fn bitxor_assign(&mut self, rhs: H256)
Performs the ^=
operation. Read more§impl CheckEqual for H256
§fn check_equal(&self, other: &H256)
Perform the equality check.Trait Implementations§
§impl<'r> BitAndAssign<&'r H256> for H256
§fn bitand_assign(&mut self, rhs: &'r H256)
Performs the &=
operation. Read more§impl BitAndAssign for H256
§fn bitand_assign(&mut self, rhs: H256)
Performs the &=
operation. Read more§impl<'r> BitOrAssign<&'r H256> for H256
§fn bitor_assign(&mut self, rhs: &'r H256)
Performs the |=
operation. Read more§impl BitOrAssign for H256
§fn bitor_assign(&mut self, rhs: H256)
Performs the |=
operation. Read more§impl<'r> BitXorAssign<&'r H256> for H256
§fn bitxor_assign(&mut self, rhs: &'r H256)
Performs the ^=
operation. Read more§impl BitXorAssign for H256
§fn bitxor_assign(&mut self, rhs: H256)
Performs the ^=
operation. Read more§impl CheckEqual for H256
§fn check_equal(&self, other: &H256)
Perform the equality check.§impl Decode for H256
§fn decode<I>(input: &mut I) -> Result<H256, Error>where
I: Input,
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
@@ -88,18 +88,18 @@ Note
types: &R
) -> Result<Vec<u8>, Error>where
R: TypeResolver,
This is a helper function which internally calls [EncodeAsType::encode_as_type_to
]. Prefer to
-implement that instead.§impl FromStr for H256
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IntoFFIValue for Twhere
T: PassBy,
§fn into_ffi_value(
self,
context: &mut dyn FunctionContext
diff --git a/ink_e2e/struct.InstantiateBuilder.html b/ink_e2e/struct.InstantiateBuilder.html
index 89acf21630f..21612f0c527 100644
--- a/ink_e2e/struct.InstantiateBuilder.html
+++ b/ink_e2e/struct.InstantiateBuilder.html
@@ -1,4 +1,4 @@
-InstantiateBuilder in ink_e2e - Rust Struct ink_e2e::InstantiateBuilder
source · pub struct InstantiateBuilder<'a, E, Contract, Args, R, B>where
+InstantiateBuilder in ink_e2e - Rust
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.InstantiateDryRunResult.html b/ink_e2e/struct.InstantiateDryRunResult.html
index fb70abcbadc..c2c8236df24 100644
--- a/ink_e2e/struct.InstantiateDryRunResult.html
+++ b/ink_e2e/struct.InstantiateDryRunResult.html
@@ -1,4 +1,4 @@
-InstantiateDryRunResult in ink_e2e - Rust Struct ink_e2e::InstantiateDryRunResult
source · pub struct InstantiateDryRunResult<E: Environment> {
+InstantiateDryRunResult in ink_e2e - Rust Struct ink_e2e::InstantiateDryRunResult
source · pub struct InstantiateDryRunResult<E: Environment> {
pub contract_result: ContractInstantiateResult<E::AccountId, E::Balance, ()>,
}
Expand description
Result of the dry run of a contract call.
Fields§
§contract_result: ContractInstantiateResult<E::AccountId, E::Balance, ()>
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.InstantiationResult.html b/ink_e2e/struct.InstantiationResult.html
index 726978c02a9..d99c2fb559c 100644
--- a/ink_e2e/struct.InstantiationResult.html
+++ b/ink_e2e/struct.InstantiationResult.html
@@ -1,4 +1,4 @@
-InstantiationResult in ink_e2e - Rust Struct ink_e2e::InstantiationResult
source · pub struct InstantiationResult<E: Environment, EventLog> {
+InstantiationResult in ink_e2e - Rust Struct ink_e2e::InstantiationResult
source · pub struct InstantiationResult<E: Environment, EventLog> {
pub account_id: E::AccountId,
pub dry_run: InstantiateDryRunResult<E>,
pub events: EventLog,
@@ -65,7 +65,14 @@
U: From<T>,
§impl<T, U> IntoKey<U> for Twhere
+
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.Keypair.html b/ink_e2e/struct.Keypair.html
index 4a79f6b9603..f4be353d859 100644
--- a/ink_e2e/struct.Keypair.html
+++ b/ink_e2e/struct.Keypair.html
@@ -1,4 +1,4 @@
-Keypair in ink_e2e - Rust pub struct Keypair(/* private fields */);
Expand description
An sr25519 keypair implementation. While the API is slightly different, the logic for
+
Keypair in ink_e2e - Rust pub struct Keypair(/* private fields */);
Expand description
An sr25519 keypair implementation. While the API is slightly different, the logic for
this has been taken from sp_core::sr25519
and we test against this to ensure conformity.
Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.RpcClient.html b/ink_e2e/struct.RpcClient.html
index 2c6c8ee58b8..d53affeee27 100644
--- a/ink_e2e/struct.RpcClient.html
+++ b/ink_e2e/struct.RpcClient.html
@@ -1,4 +1,4 @@
-RpcClient in ink_e2e - Rust pub struct RpcClient { /* private fields */ }
Expand description
A concrete wrapper around an [RpcClientT
] which provides some higher level helper methods,
+
RpcClient in ink_e2e - Rust pub struct RpcClient { /* private fields */ }
Expand description
A concrete wrapper around an [RpcClientT
] which provides some higher level helper methods,
is cheaply cloneable, and can be handed to things like [crate::client::OnlineClient
] to
instantiate it.
Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.SandboxClient.html b/ink_e2e/struct.SandboxClient.html
index c0e18d20bdd..6abc5f10691 100644
--- a/ink_e2e/struct.SandboxClient.html
+++ b/ink_e2e/struct.SandboxClient.html
@@ -1,10 +1,10 @@
-SandboxClient in ink_e2e - Rust Struct ink_e2e::SandboxClient
source · pub struct SandboxClient<AccountId, Hash, S: Sandbox> { /* private fields */ }
Implementations§
source§impl<AccountId, Hash, S> Client<AccountId, Hash, S>where
+SandboxClient in ink_e2e - Rust Struct ink_e2e::SandboxClient
source · pub struct SandboxClient<AccountId, Hash, S: Sandbox> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<AccountId: AsRef<[u8; 32]> + Send, Hash, S: Sandbox> ChainBackend for Client<AccountId, Hash, S>where
S::Runtime: Config,
- AccountIdFor<S::Runtime>: From<[u8; 32]>,
source§fn create_and_fund_account<'life0, 'life1, 'async_trait>(
+ AccountIdFor<S::Runtime>: From<[u8; 32]>,
source§impl<AccountId: Clone + Send + Sync + From<[u8; 32]> + AsRef<[u8; 32]>, Hash: Copy + From<[u8; 32]>, S: Sandbox, E: Environment<AccountId = AccountId, Balance = <<S::Runtime as Config>::Currency as Inspect<AccountIdFor<S::Runtime>>>::Balance, Hash = Hash> + 'static> ContractsBackend<E> for Client<AccountId, Hash, S>where
S::Runtime: Config + Config,
- AccountIdFor<S::Runtime>: From<[u8; 32]> + AsRef<[u8; 32]>,
source§impl<AccountId: Clone + Send + Sync + From<[u8; 32]> + AsRef<[u8; 32]>, Hash: Copy + Send + From<[u8; 32]>, Config: Sandbox, E: Environment<AccountId = AccountId, Balance = <<Config::Runtime as Config>::Currency as Inspect<AccountIdFor<Config::Runtime>>>::Balance, Hash = Hash> + 'static> E2EBackend<E> for Client<AccountId, Hash, Config>where
+ AccountIdFor<S::Runtime>: From<[u8; 32]> + AsRef<[u8; 32]>,
source§impl<AccountId: Clone + Send + Sync + From<[u8; 32]> + AsRef<[u8; 32]>, Hash: Copy + Send + From<[u8; 32]>, Config: Sandbox, E: Environment<AccountId = AccountId, Balance = <<Config::Runtime as Config>::Currency as Inspect<AccountIdFor<Config::Runtime>>>::Balance, Hash = Hash> + 'static> E2EBackend<E> for Client<AccountId, Hash, Config>where
Config::Runtime: Config + Config,
AccountIdFor<Config::Runtime>: From<[u8; 32]> + AsRef<[u8; 32]>,
<<Config::Runtime as Config>::Currency as Inspect<AccountIdFor<Config::Runtime>>>::Balance: Send + Sync,
source§impl<AccountId, Hash, S: Sandbox> Send for Client<AccountId, Hash, S>
Auto Trait Implementations§
source§impl<T> IntoEither for T
source§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>where
+ F: FnOnce(&Self) -> bool,
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§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
§fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
diff --git a/ink_e2e/struct.TestNodeProcess.html b/ink_e2e/struct.TestNodeProcess.html
index 3dfddaedae1..da109630f34 100644
--- a/ink_e2e/struct.TestNodeProcess.html
+++ b/ink_e2e/struct.TestNodeProcess.html
@@ -1,4 +1,4 @@
-TestNodeProcess in ink_e2e - Rust Struct ink_e2e::TestNodeProcess
source · pub struct TestNodeProcess<R: Config> { /* private fields */ }
Expand description
Spawn a local substrate node for testing.
+TestNodeProcess in ink_e2e - Rust