pub struct ContractAddress {
pub index: ContractIndex,
pub subindex: ContractSubIndex,
}
Expand description
Address of a contract.
Fields
index: ContractIndex
subindex: ContractSubIndex
Implementations
sourceimpl ContractAddress
impl ContractAddress
sourcepub fn new(index: ContractIndex, subindex: ContractSubIndex) -> Self
pub fn new(index: ContractIndex, subindex: ContractSubIndex) -> Self
Construct a new contract address from index and subindex.
Trait Implementations
sourceimpl Clone for ContractAddress
impl Clone for ContractAddress
sourcefn clone(&self) -> ContractAddress
fn clone(&self) -> ContractAddress
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 ContractAddress
impl Debug for ContractAddress
sourceimpl Deserial for ContractAddress
impl Deserial for ContractAddress
sourceimpl From<ContractAddress> for Address
impl From<ContractAddress> for Address
sourcefn from(address: ContractAddress) -> Address
fn from(address: ContractAddress) -> Address
Converts to this type from the input type.
sourceimpl Hash for ContractAddress
impl Hash for ContractAddress
sourceimpl Ord for ContractAddress
impl Ord for ContractAddress
sourcefn cmp(&self, other: &ContractAddress) -> Ordering
fn cmp(&self, other: &ContractAddress) -> 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<ContractAddress> for ContractAddress
impl PartialEq<ContractAddress> for ContractAddress
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<ContractAddress> for ContractAddress
impl PartialOrd<ContractAddress> for ContractAddress
sourcefn partial_cmp(&self, other: &ContractAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &ContractAddress) -> 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 ContractAddress
impl SchemaType for ContractAddress
sourceimpl Serial for ContractAddress
impl Serial for ContractAddress
impl Copy for ContractAddress
impl Eq for ContractAddress
impl StructuralEq for ContractAddress
impl StructuralPartialEq for ContractAddress
Auto Trait Implementations
impl RefUnwindSafe for ContractAddress
impl Send for ContractAddress
impl Sync for ContractAddress
impl Unpin for ContractAddress
impl UnwindSafe for ContractAddress
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