xcm_primitives

Trait AccountIdToCurrencyId

Source
pub trait AccountIdToCurrencyId<Account, CurrencyId> {
    // Required method
    fn account_to_currency_id(account: Account) -> Option<CurrencyId>;
}
Expand description

This trait ensure we can convert AccountIds to CurrencyIds We will require Runtime to have this trait implemented

Required Methods§

Source

fn account_to_currency_id(account: Account) -> Option<CurrencyId>

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§