referrerpolicy=no-referrer-when-downgrade
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§

type Error

Required Methods§

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

Object Safety§

This trait is not object safe.

Implementors§