Struct concordium_std::AccountAddress
source · [−]Expand description
Address of an account, as raw bytes.
Tuple Fields
0: [u8; 32]
Implementations
sourceimpl 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
sourceimpl AsRef<[u8]> for AccountAddress
impl AsRef<[u8]> for AccountAddress
sourceimpl Clone for AccountAddress
impl Clone for AccountAddress
sourcefn clone(&self) -> AccountAddress
fn clone(&self) -> AccountAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountAddress
impl Debug for AccountAddress
sourceimpl Deserial for AccountAddress
impl Deserial for AccountAddress
sourcefn 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. Read more
sourceimpl From<AccountAddress> for Address
impl From<AccountAddress> for Address
sourcefn from(address: AccountAddress) -> Address
fn from(address: AccountAddress) -> Address
Converts to this type from the input type.
sourceimpl Hash for AccountAddress
impl Hash for AccountAddress
sourceimpl Ord for AccountAddress
impl Ord for AccountAddress
sourcefn cmp(&self, other: &AccountAddress) -> Ordering
fn cmp(&self, other: &AccountAddress) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AccountAddress> for AccountAddress
impl PartialEq<AccountAddress> for AccountAddress
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<AccountAddress> for AccountAddress
impl PartialOrd<AccountAddress> for AccountAddress
sourcefn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl SchemaType for AccountAddress
impl SchemaType for AccountAddress
sourceimpl Serial for AccountAddress
impl Serial for AccountAddress
impl Copy for AccountAddress
impl Eq for AccountAddress
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more