Struct concordium_std::AccountAddress
source · pub struct AccountAddress(pub [u8; 32]);
Expand description
Address of an account, as raw bytes.
Tuple Fields§
§0: [u8; 32]
Implementations§
source§impl AccountAddress
impl AccountAddress
sourcepub fn is_alias(&self, other: &AccountAddress) -> bool
pub fn is_alias(&self, other: &AccountAddress) -> bool
Check whether self
is an alias of other
. Two addresses are aliases
if they identify the same account. This is defined to be when the
addresses agree on the first 29 bytes.
Trait Implementations§
source§impl AsRef<[u8]> for AccountAddress
impl AsRef<[u8]> for AccountAddress
source§impl Clone for AccountAddress
impl Clone for AccountAddress
source§fn clone(&self) -> AccountAddress
fn clone(&self) -> AccountAddress
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 Debug for AccountAddress
impl Debug for AccountAddress
source§impl Deserial for AccountAddress
impl Deserial for AccountAddress
source§fn deserial<R>(source: &mut R) -> Result<AccountAddress, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<AccountAddress, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl From<AccountAddress> for Address
impl From<AccountAddress> for Address
source§fn from(address: AccountAddress) -> Address
fn from(address: AccountAddress) -> Address
Converts to this type from the input type.
source§impl Hash for AccountAddress
impl Hash for AccountAddress
source§impl Ord for AccountAddress
impl Ord for AccountAddress
source§fn cmp(&self, other: &AccountAddress) -> Ordering
fn cmp(&self, other: &AccountAddress) -> 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 AccountAddress
impl PartialEq for AccountAddress
source§fn eq(&self, other: &AccountAddress) -> bool
fn eq(&self, other: &AccountAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AccountAddress
impl PartialOrd for AccountAddress
source§fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountAddress) -> 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 SchemaType for AccountAddress
impl SchemaType for AccountAddress
source§impl Serial for AccountAddress
impl Serial for AccountAddress
impl Copy for AccountAddress
impl Eq for AccountAddress
impl StructuralPartialEq for AccountAddress
Auto Trait Implementations§
impl RefUnwindSafe for AccountAddress
impl Send for AccountAddress
impl Sync for AccountAddress
impl Unpin for AccountAddress
impl UnwindSafe for AccountAddress
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
source§impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.