referrerpolicy=no-referrer-when-downgrade
pub trait AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance>: MatchesFungibles<AssetId, Balance>
where AssetId: Clone, Balance: Clone, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>,
{ // Required method fn convert_ref( value: impl Borrow<(AssetId, Balance)>, ) -> Result<Asset, FungiblesAccessError>; }
Expand description

Converting any [(AssetId, Balance)] to [Asset]

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AssetId: Clone, Balance: Clone, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>> AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance> for ConvertedConcreteId<AssetId, Balance, ConvertAssetId, ConvertBalance>

source§

impl<AssetId: Clone, Balance: Clone, MatchAssetId: Contains<Location>, ConvertAssetId: MaybeEquivalence<Location, AssetId>, ConvertBalance: MaybeEquivalence<u128, Balance>> AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance> for MatchedConvertedConcreteId<AssetId, Balance, MatchAssetId, ConvertAssetId, ConvertBalance>

Implementors§