Struct ink_primitives::AccountId
source · pub struct AccountId(_);
Expand description
The default environment AccountId
type.
Note
This is a mirror of the AccountId
type used in the default configuration
of PALLET contracts.
Trait Implementations§
source§impl Decode for AccountId
impl Decode for AccountId
source§impl Encode for AccountId
impl Encode for AccountId
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.
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 encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Ord for AccountId
impl Ord for AccountId
source§impl PartialEq<AccountId> for AccountId
impl PartialEq<AccountId> for AccountId
source§impl PartialOrd<AccountId> for AccountId
impl PartialOrd<AccountId> for AccountId
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<'a> TryFrom<&'a [u8]> for AccountId
impl<'a> TryFrom<&'a [u8]> for AccountId
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.