pub struct ContractAddress {
pub index: ContractIndex,
pub subindex: ContractSubIndex,
}
Expand description
Address of a contract.
Fields§
§index: ContractIndex
§subindex: ContractSubIndex
Implementations§
source§impl ContractAddress
impl ContractAddress
sourcepub const fn new(index: ContractIndex, subindex: ContractSubIndex) -> Self
pub const fn new(index: ContractIndex, subindex: ContractSubIndex) -> Self
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§impl<'de> Deserialize<'de> for ContractAddress
impl<'de> Deserialize<'de> for ContractAddress
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 ContractAddress
impl Display for ContractAddress
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 FromStr for ContractAddress
impl FromStr for ContractAddress
Parse a ContractAddress
from a string of the format
“<index,subindex>” where index and subindex are ContractIndex
and ContractSubIndex
, respectively.
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
source§impl Serialize for ContractAddress
impl Serialize 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