Struct precompile_utils::testing::account::MockAccount
source · pub struct MockAccount(pub H160);
Tuple Fields§
§0: H160
Implementations§
source§impl MockAccount
impl MockAccount
Trait Implementations§
source§impl AddressMapping<MockAccount> for MockAccount
impl AddressMapping<MockAccount> for MockAccount
fn into_account_id(address: H160) -> MockAccount
source§impl Clone for MockAccount
impl Clone for MockAccount
source§fn clone(&self) -> MockAccount
fn clone(&self) -> MockAccount
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 Convert<H160, MockAccount> for MockAccount
impl Convert<H160, MockAccount> for MockAccount
source§fn convert(address: H160) -> MockAccount
fn convert(address: H160) -> MockAccount
Make conversion.
source§impl Debug for MockAccount
impl Debug for MockAccount
source§impl Decode for MockAccount
impl Decode for MockAccount
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.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl<'de> Deserialize<'de> for MockAccount
impl<'de> Deserialize<'de> for MockAccount
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MockAccount
impl Display for MockAccount
source§impl Encode for MockAccount
impl Encode for MockAccount
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<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<AddressInPrefixedSet> for MockAccount
impl From<AddressInPrefixedSet> for MockAccount
source§fn from(value: AddressInPrefixedSet) -> MockAccount
fn from(value: AddressInPrefixedSet) -> MockAccount
Converts to this type from the input type.
source§impl From<Alice> for MockAccount
impl From<Alice> for MockAccount
source§fn from(value: Alice) -> MockAccount
fn from(value: Alice) -> MockAccount
Converts to this type from the input type.
source§impl From<Bob> for MockAccount
impl From<Bob> for MockAccount
source§fn from(value: Bob) -> MockAccount
fn from(value: Bob) -> MockAccount
Converts to this type from the input type.
source§impl From<Charlie> for MockAccount
impl From<Charlie> for MockAccount
source§fn from(value: Charlie) -> MockAccount
fn from(value: Charlie) -> MockAccount
Converts to this type from the input type.
source§impl From<CryptoAlith> for MockAccount
impl From<CryptoAlith> for MockAccount
source§fn from(value: CryptoAlith) -> MockAccount
fn from(value: CryptoAlith) -> MockAccount
Converts to this type from the input type.
source§impl From<CryptoBaltathar> for MockAccount
impl From<CryptoBaltathar> for MockAccount
source§fn from(value: CryptoBaltathar) -> MockAccount
fn from(value: CryptoBaltathar) -> MockAccount
Converts to this type from the input type.
source§impl From<CryptoCarleth> for MockAccount
impl From<CryptoCarleth> for MockAccount
source§fn from(value: CryptoCarleth) -> MockAccount
fn from(value: CryptoCarleth) -> MockAccount
Converts to this type from the input type.
source§impl From<David> for MockAccount
impl From<David> for MockAccount
source§fn from(value: David) -> MockAccount
fn from(value: David) -> MockAccount
Converts to this type from the input type.
source§impl From<H160> for MockAccount
impl From<H160> for MockAccount
source§fn from(address: H160) -> MockAccount
fn from(address: H160) -> MockAccount
Converts to this type from the input type.
source§impl From<MockAccount> for H160
impl From<MockAccount> for H160
source§fn from(account: MockAccount) -> H160
fn from(account: MockAccount) -> H160
Converts to this type from the input type.
source§impl From<MockAccount> for H256
impl From<MockAccount> for H256
source§fn from(x: MockAccount) -> H256
fn from(x: MockAccount) -> H256
Converts to this type from the input type.
source§impl From<Precompile1> for MockAccount
impl From<Precompile1> for MockAccount
source§fn from(value: Precompile1) -> MockAccount
fn from(value: Precompile1) -> MockAccount
Converts to this type from the input type.
source§impl From<Zero> for MockAccount
impl From<Zero> for MockAccount
source§fn from(value: Zero) -> MockAccount
fn from(value: Zero) -> MockAccount
Converts to this type from the input type.
source§impl From<u64> for MockAccount
impl From<u64> for MockAccount
source§fn from(address: u64) -> MockAccount
fn from(address: u64) -> MockAccount
Converts to this type from the input type.
source§impl MaxEncodedLen for MockAccount
impl MaxEncodedLen for MockAccount
source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
source§impl Ord for MockAccount
impl Ord for MockAccount
source§fn cmp(&self, other: &MockAccount) -> Ordering
fn cmp(&self, other: &MockAccount) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MockAccount
impl PartialEq for MockAccount
source§fn eq(&self, other: &MockAccount) -> bool
fn eq(&self, other: &MockAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MockAccount
impl PartialOrd for MockAccount
source§fn partial_cmp(&self, other: &MockAccount) -> Option<Ordering>
fn partial_cmp(&self, other: &MockAccount) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MockAccount
impl Serialize for MockAccount
source§impl TypeInfo for MockAccount
impl TypeInfo for MockAccount
impl Copy for MockAccount
impl EncodeLike for MockAccount
impl Eq for MockAccount
impl StructuralEq for MockAccount
impl StructuralPartialEq for MockAccount
Auto Trait Implementations§
impl RefUnwindSafe for MockAccount
impl Send for MockAccount
impl Sync for MockAccount
impl Unpin for MockAccount
impl UnwindSafe for MockAccount
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> DefensiveMax<T> for Twhere
T: PartialOrd,
impl<T> DefensiveMax<T> for Twhere
T: PartialOrd,
§fn defensive_max(self, other: T) -> T
fn defensive_max(self, other: T) -> T
§fn defensive_strict_max(self, other: T) -> T
fn defensive_strict_max(self, other: T) -> T
§impl<T> DefensiveMin<T> for Twhere
T: PartialOrd,
impl<T> DefensiveMin<T> for Twhere
T: PartialOrd,
§fn defensive_min(self, other: T) -> T
fn defensive_min(self, other: T) -> T
§fn defensive_strict_min(self, other: T) -> T
fn defensive_strict_min(self, other: T) -> T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere
T: Codec,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.