pub trait ConversionToAssetBalance<InBalance, AssetId, AssetBalance> {
    type Error;

    // Required method
    fn to_asset_balance(
        balance: InBalance,
        asset_id: AssetId,
    ) -> Result<AssetBalance, Self::Error>;
}
Expand description

Converts a balance value into an asset balance.

Required Associated Types§

Required Methods§

source

fn to_asset_balance( balance: InBalance, asset_id: AssetId, ) -> Result<AssetBalance, Self::Error>

Object Safety§

This trait is not object safe.

Implementors§