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 duplicate 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§impl PartialOrd for ContractAddress
impl PartialOrd for ContractAddress
Source§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.