Struct concordium_std::ContractAddress
source · pub struct ContractAddress {
pub index: u64,
pub subindex: u64,
}
Expand description
Address of a contract.
Fields§
§index: u64
§subindex: u64
Implementations§
source§impl ContractAddress
impl ContractAddress
sourcepub const fn new(index: u64, subindex: u64) -> ContractAddress
pub const fn new(index: u64, subindex: u64) -> ContractAddress
Construct a new contract address from index and subindex.
Trait Implementations§
source§impl Clone for ContractAddress
impl Clone for ContractAddress
source§fn clone(&self) -> ContractAddress
fn clone(&self) -> ContractAddress
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 ContractAddress
impl Debug for ContractAddress
source§impl Deserial for ContractAddress
impl Deserial for ContractAddress
source§fn deserial<R>(source: &mut R) -> Result<ContractAddress, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ContractAddress, 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<ContractAddress> for Address
impl From<ContractAddress> for Address
source§fn from(address: ContractAddress) -> Address
fn from(address: ContractAddress) -> Address
Converts to this type from the input type.
source§impl Hash for ContractAddress
impl Hash for ContractAddress
source§impl Ord for ContractAddress
impl Ord for ContractAddress
source§fn cmp(&self, other: &ContractAddress) -> Ordering
fn cmp(&self, other: &ContractAddress) -> 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 ContractAddress
impl PartialEq for ContractAddress
source§fn eq(&self, other: &ContractAddress) -> bool
fn eq(&self, other: &ContractAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContractAddress
impl PartialOrd for ContractAddress
source§fn partial_cmp(&self, other: &ContractAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &ContractAddress) -> 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 ContractAddress
impl SchemaType for ContractAddress
source§impl Serial for ContractAddress
impl Serial for ContractAddress
impl Copy for ContractAddress
impl Eq for ContractAddress
impl StructuralPartialEq for ContractAddress
Auto Trait Implementations§
impl Freeze for ContractAddress
impl RefUnwindSafe for ContractAddress
impl Send for ContractAddress
impl Sync for ContractAddress
impl Unpin for ContractAddress
impl UnwindSafe for ContractAddress
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.