Struct clarity::address::Address [−][src]
pub struct Address(_);
Expand description
Representation of an Ethereum address.
Address is usually derived from a PrivateKey
, or converted from its
textual representation.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Parses a string into a valid Ethereum address.
Supported formats
0x
prefixed address- Raw bytes of an address represented by a bytes as an hexadecimal.
Examples
use clarity::Address; // Method 1 Address::from_str("0x0102030405060708090a0b0c0d0e0f1011121314").unwrap(); // Method 1 (without 0x prefix) Address::from_str("0102030405060708090a0b0c0d0e0f1011121314").unwrap(); // Method 2 let _address : Address = "14131211100f0e0d0c0b0a090807060504030201".parse().unwrap();
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self