[][src]Struct ethereum_rust_utils::Address

pub struct Address(pub [u8; 20]);

Account address (20 bytes)

Methods

impl Address
[src]

Try to convert a byte vector to Address.

Arguments

  • data - A byte slice with ADDRESS_BYTES length

Example

let addr = emerald_rs::Address::try_from(&[0u8; emerald_rs::ADDRESS_BYTES]).unwrap();
assert_eq!(addr.to_string(), "0x0000000000000000000000000000000000000000");

Trait Implementations

impl Clone for Address
[src]

Performs copy-assignment from source. Read more

impl Copy for Address
[src]

impl From<[u8; 20]> for Address
[src]

impl Eq for Address
[src]

impl PartialOrd<Address> for Address
[src]

impl Default for Address
[src]

impl PartialEq<Address> for Address
[src]

impl Ord for Address
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Debug for Address
[src]

impl Display for Address
[src]

impl Deref for Address
[src]

The resulting type after dereferencing.

impl Hash for Address
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for Address
[src]

The associated error which can be returned from parsing.

impl Serialize for Address
[src]

impl<'de> Deserialize<'de> for Address
[src]

Auto Trait Implementations

impl Send for Address

impl Sync for Address

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]