Struct concordium_std::ContractAddress
source · Expand description
Address of a contract.
Fields
index: u64
subindex: u64
Implementations
sourceimpl ContractAddress
impl ContractAddress
sourcepub fn new(index: u64, subindex: u64) -> ContractAddress
pub fn new(index: u64, subindex: u64) -> ContractAddress
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 moresourceimpl Debug for ContractAddress
impl Debug for ContractAddress
sourceimpl Deserial for ContractAddress
impl Deserial for ContractAddress
sourcefn 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. Read more
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) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + 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
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>
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 moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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