Trait AddressMapping

Source
pub trait AddressMapping<A> {
    // Required method
    fn into_account_id(address: H160) -> A;
}
Expand description

Trait to be implemented for evm address mapping.

Required Methods§

Source

fn into_account_id(address: H160) -> A

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<H: Hasher<Out = H256>> AddressMapping<AccountId32> for HashedAddressMapping<H>

Source§

impl<T: From<H160>> AddressMapping<T> for IdentityAddressMapping

impl AddressMapping<MockAccount> for MockAccount